chore: cleanup

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-06-28 20:13:44 +02:00
parent 3ec5e1a3b8
commit ca493e91ef
3 changed files with 8 additions and 6 deletions

View File

@@ -20,8 +20,6 @@ OE_STORE_DIR = OE_DIR.joinpath("octoeverywhere-store")
OE_REQ_FILE = OE_DIR.joinpath("requirements.txt")
OE_DEPS_JSON_FILE = OE_DIR.joinpath("moonraker-system-dependencies.json")
OE_INSTALL_SCRIPT = OE_DIR.joinpath("install.sh")
OE_UPDATE_SCRIPT = OE_DIR.joinpath("update.sh")
OE_REMOVE_SCRIPT = OE_DIR.joinpath("uninstall.sh")
# filenames
OE_CFG_NAME = "octoeverywhere.conf"

View File

@@ -23,10 +23,7 @@ from components.octoeverywhere import (
from core.instance_manager.base_instance import BaseInstance
from utils.logger import Logger
MODULE_PATH = Path(__file__).resolve().parent
# noinspection PyMethodMayBeStatic
class Octoeverywhere(BaseInstance):
@classmethod
def blacklist(cls) -> List[str]:
@@ -45,6 +42,10 @@ class Octoeverywhere(BaseInstance):
def cfg_file(self) -> Path:
return self._cfg_file
@property
def sys_cfg_file(self) -> Path:
return self._sys_cfg_file
@property
def log(self) -> Path:
return self._log
@@ -54,7 +55,6 @@ class Octoeverywhere(BaseInstance):
try:
cmd = f"{OE_INSTALL_SCRIPT} {self.cfg_dir}/moonraker.conf"
print(cmd)
run(cmd, check=True, shell=True)
except CalledProcessError as e:

View File

@@ -64,6 +64,8 @@ def install_octoeverywhere() -> None:
"It is save to run the installer again to link your "
"printer or repair any issues.",
],
padding_top=0,
padding_bottom=0,
)
if not get_confirm("Re-run OctoEverywhere installation?"):
Logger.print_info("Exiting OctoEverywhere for Klipper installation ...")
@@ -84,6 +86,8 @@ def install_octoeverywhere() -> None:
"\n\n",
"The setup will apply the same names to OctoEverywhere!",
],
padding_top=0,
padding_bottom=0,
)
if not get_confirm(