reorders the .vscode tasks so run is the default hopefully.
removes code that was commented out anyway.
This commit is contained in:
prash3r 2022-09-07 12:39:52 +02:00
parent 2f085965c7
commit e61fbdb69c
2 changed files with 8 additions and 11 deletions

16
.vscode/launch.json vendored
View file

@ -5,20 +5,20 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "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", "name": "run CraftBeerPi4",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"module": "run", "module": "run",
"args": ["--config-folder-path=./.devcontainer/cbpi-dev-config", "start"] "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"]
} }
] ]
} }

View file

@ -69,7 +69,6 @@ class ConfigFolder:
print("Removing backup file") print("Removing backup file")
print("contents of restored_config.zip file have been restored.") 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'.") 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: else:
print("Wrong Content in zip file. No restore possible") print("Wrong Content in zip file. No restore possible")
print("renaming zip file so it will be ignored on the next start") print("renaming zip file so it will be ignored on the next start")
@ -166,8 +165,6 @@ class ConfigFolder:
print("Config Folder created") print("Config Folder created")
def create_home_folder_structure(configFolder): def create_home_folder_structure(configFolder):
# pathlib.Path(os.path.join(".", 'logs/sensors')).mkdir(parents=True, exist_ok=True)
configFolder.create_folders() configFolder.create_folders()
print("Folder created") print("Folder created")