From e61fbdb69cb5290295be937117b07819f18e17c2 Mon Sep 17 00:00:00 2001 From: prash3r Date: Wed, 7 Sep 2022 12:39:52 +0200 Subject: [PATCH] extends #62 reorders the .vscode tasks so run is the default hopefully. removes code that was commented out anyway. --- .vscode/launch.json | 16 ++++++++-------- cbpi/configFolder.py | 3 --- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index feff4f1..73c363b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,20 +5,20 @@ "version": "0.2.0", "configurations": [ - { - "name": "setup CraftBeerPi4: create config folder structure", - "type": "python", - "request": "launch", - "module": "run", - "args": ["--config-folder-path=./.devcontainer/cbpi-dev-config", "setup"] - }, - { "name": "run CraftBeerPi4", "type": "python", "request": "launch", "module": "run", "args": ["--config-folder-path=./.devcontainer/cbpi-dev-config", "start"] + }, + + { + "name": "setup CraftBeerPi4: create config folder structure", + "type": "python", + "request": "launch", + "module": "run", + "args": ["--config-folder-path=./.devcontainer/cbpi-dev-config", "setup"] } ] } \ No newline at end of file diff --git a/cbpi/configFolder.py b/cbpi/configFolder.py index 8926a91..058271c 100644 --- a/cbpi/configFolder.py +++ b/cbpi/configFolder.py @@ -69,7 +69,6 @@ class ConfigFolder: print("Removing backup file") print("contents of restored_config.zip file have been restored.") print("in case of a partial backup you will still be prompted to run 'cbpi setup'.") - # os.remove(backupfile) # since the zip was inside the config folder and the config folder was deleted 10 lines ago this file doesnt exist anymore else: print("Wrong Content in zip file. No restore possible") print("renaming zip file so it will be ignored on the next start") @@ -166,8 +165,6 @@ class ConfigFolder: print("Config Folder created") def create_home_folder_structure(configFolder): - # pathlib.Path(os.path.join(".", 'logs/sensors')).mkdir(parents=True, exist_ok=True) - configFolder.create_folders() print("Folder created")