Skip to content

Commit

Permalink
Prepare data before everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreWohnsland committed Jun 1, 2024
1 parent 81d6ad9 commit 7d58678
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ build-backend = "poetry.core.masonry.api"

[tool.ruff]
line-length = 120
per-file-ignores = { "runme.py" = ["E402"] }

[tool.mypy]
disable_error_code = ["annotation-unchecked", "import-untyped"]
Expand Down
7 changes: 5 additions & 2 deletions runme.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
from src.utils import prepare_data_location_and_files

prepare_data_location_and_files()

import sys
from PyQt5.QtWidgets import QApplication

from src.utils import sync_theme, prepare_data_location_and_files, get_additional_run_args
from src.utils import sync_theme, get_additional_run_args
from src.ui_mainwindow import MainWindow


if __name__ == "__main__":
prepare_data_location_and_files()
app = QApplication(sys.argv + get_additional_run_args())
w = MainWindow()
# in case of active style change, also change theme, need to sync at start
Expand Down

0 comments on commit 7d58678

Please sign in to comment.