diff --git a/Tools/build.py b/Tools/build.py index 0dc47713..6d8bb39a 100755 --- a/Tools/build.py +++ b/Tools/build.py @@ -120,9 +120,8 @@ def setup(build_config: BuildConfig, build_result: BuildResult) -> Tuple[BuildCo if build_config.use_aqt: build_config.aqt_path = defines.AQT_PATH - if not Path(build_config.aqt_path).exists(): - print( - f"aqt path does not exist at {build_config.aqt_path}. Please make sure you have installed aqt.") + if not build_config.aqt_path.exists(): + print(f"aqt path does not exist at {build_config.aqt_path}. Please make sure to run setup.py!") exit(2) # Set default to empty, because it is only used on mac diff --git a/Tools/defines.py b/Tools/defines.py index e63aeda9..c9988af4 100644 --- a/Tools/defines.py +++ b/Tools/defines.py @@ -5,5 +5,5 @@ VCPKG_VERSION = "e2667a41fc2fc578474e9521d7eb90b769569c83" # Master 07.10.2022 QT_VERSION = "6.3.2" QT_IFW_VERSION = "4.4" SCREENPLAY_VERSION = "0.15.0-RC1" -AQT_PATH = Path("C:/aqt") if sys.platform == "win32" else Path("~/aqt") -PYTHON_EXECUTABLE = "python" if sys.platform == "win32" else "python3" \ No newline at end of file +AQT_PATH = Path("C:/aqt") if sys.platform == "win32" else Path().home().joinpath("aqt") +PYTHON_EXECUTABLE = "python" if sys.platform == "win32" else "python3"