mirror of
https://github.com/dw-0/kiauh.git
synced 2026-06-19 15:09:30 +05:00
09a5d96b63
* feat(tmc_autotune): add initial implementation of TMC Autotune extension with installation and update functionalities * fix: remove useless comments * fix: added support for Kalico style plugins directory * refactor: extract method for moonraker update manager section removal, automatically reloading moonraker upon call
29 lines
1.2 KiB
Python
29 lines
1.2 KiB
Python
# ======================================================================= #
|
|
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> #
|
|
# #
|
|
# This file is part of KIAUH - Klipper Installation And Update Helper #
|
|
# https://github.com/dw-0/kiauh #
|
|
# #
|
|
# This file may be distributed under the terms of the GNU GPLv3 license #
|
|
# ======================================================================= #
|
|
from pathlib import Path
|
|
|
|
# repo
|
|
TMCA_REPO = "https://github.com/andrewmcgr/klipper_tmc_autotune"
|
|
|
|
# directories
|
|
TMCA_DIR = Path.home().joinpath("klipper_tmc_autotune")
|
|
MODULE_PATH = Path(__file__).resolve().parent
|
|
KLIPPER_DIR = Path.home().joinpath("klipper")
|
|
KLIPPER_EXTRAS = KLIPPER_DIR.joinpath("klippy/extras")
|
|
KLIPPER_PLUGINS = KLIPPER_DIR.joinpath("klippy/plugins")
|
|
KLIPPER_EXTENSIONS_PATH = (
|
|
KLIPPER_PLUGINS if KLIPPER_PLUGINS.is_dir() else KLIPPER_EXTRAS
|
|
)
|
|
|
|
# files
|
|
TMCA_EXAMPLE_CONFIG = TMCA_DIR.joinpath("docs/example.cfg")
|
|
|
|
# names
|
|
TMCA_MOONRAKER_UPDATER_NAME = "update_manager klipper_tmc_autotune"
|