mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2025-01-03 11:21:44 +01:00
Merge branch 'dev-config-changes' of github.com:prash3r/craftbeerpi4 into dev-config-changes
This commit is contained in:
commit
b5ca644e80
2 changed files with 8 additions and 11 deletions
16
.vscode/launch.json
vendored
16
.vscode/launch.json
vendored
|
@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue