mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
extends #62
reorders the .vscode tasks so run is the default hopefully. removes code that was commented out anyway.
This commit is contained in:
parent
2f085965c7
commit
e61fbdb69c
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",
|
"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"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue