Skip to content

Commit

Permalink
settings.json creation now happening first, before filehandler initia…
Browse files Browse the repository at this point in the history
…lization
  • Loading branch information
waLLxAck committed Feb 2, 2023
1 parent 63d3472 commit 53867b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@


def run():
FILE_HANDLER.create_folders_if_not_exists()
FILE_HANDLER.create_settings_file_if_not_exists()
settings = Settings.from_json(FILE_HANDLER.get_settings())
project_files = FILE_HANDLER.get_projects_files()
for project_file in project_files:
Expand Down
2 changes: 2 additions & 0 deletions util/FileHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Paths:
class FileHandler:
def __init__(self):
self.paths = Paths()
self.create_folders_if_not_exists()
self.create_settings_file_if_not_exists()
self.bookmarks_path = self.get_bookmarks_path()

@staticmethod
Expand Down

0 comments on commit 53867b3

Please sign in to comment.