From 7d586782eee615cb6e8fa403012062de09c17272 Mon Sep 17 00:00:00 2001 From: Andre Wohnsland <50302161+AndreWohnsland@users.noreply.github.com> Date: Sat, 1 Jun 2024 09:53:56 +0200 Subject: [PATCH] Prepare data before everything else --- pyproject.toml | 1 + runme.py | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 20e97fc..9edabac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/runme.py b/runme.py index 841970c..6dba94e 100644 --- a/runme.py +++ b/runme.py @@ -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