Merge branch 'dev-config-changes' of github.com:prash3r/craftbeerpi4 into dev-config-changes

This commit is contained in:
prash3r 2022-09-09 13:08:40 +02:00
commit b5ca644e80
2 changed files with 8 additions and 11 deletions

16
.vscode/launch.json vendored
View file

@ -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"]
}
]
}

View file

@ -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")