check_for_setup() now checks for provided logs folder path

This commit is contained in:
prash3r 2022-09-14 19:36:51 +02:00
parent 706bbac9f0
commit ac9b599619

View file

@ -97,7 +97,6 @@ class ConfigFolder:
['dashboard/widgets', 'folder'], ['dashboard/widgets', 'folder'],
['dashboard', 'folder'], ['dashboard', 'folder'],
['fermenterrecipes', 'folder'], ['fermenterrecipes', 'folder'],
['../logs', 'folder'],
['recipes', 'folder'], ['recipes', 'folder'],
['upload', 'folder'] ['upload', 'folder']
] ]
@ -174,7 +173,6 @@ class ConfigFolder:
def create_folders(self): def create_folders(self):
pathlib.Path(self.configFolderPath).mkdir(parents=True, exist_ok=True) pathlib.Path(self.configFolderPath).mkdir(parents=True, exist_ok=True)
pathlib.Path(os.path.join(self.configFolderPath, 'dashboard', 'widgets')).mkdir(parents=True, exist_ok=True) pathlib.Path(os.path.join(self.configFolderPath, 'dashboard', 'widgets')).mkdir(parents=True, exist_ok=True)
#pathlib.Path(os.path.join(self.configFolderPath, '..','logs')).mkdir(parents=True, exist_ok=True)
pathlib.Path(os.path.join(self.configFolderPath, 'recipes')).mkdir(parents=True, exist_ok=True) pathlib.Path(os.path.join(self.configFolderPath, 'recipes')).mkdir(parents=True, exist_ok=True)
pathlib.Path(os.path.join(self.configFolderPath, 'fermenterrecipes')).mkdir(parents=True, exist_ok=True) pathlib.Path(os.path.join(self.configFolderPath, 'fermenterrecipes')).mkdir(parents=True, exist_ok=True)
pathlib.Path(os.path.join(self.configFolderPath, 'upload')).mkdir(parents=True, exist_ok=True) pathlib.Path(os.path.join(self.configFolderPath, 'upload')).mkdir(parents=True, exist_ok=True)