From 6c674533b3114702e88cb76c23d2af9b8369acd9 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Wed, 30 Aug 2023 19:09:46 -0500 Subject: [PATCH] Tools - make.py will try running pboProject once if it's not in registry (#9356) --- tools/make.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/make.py b/tools/make.py index 9ca53ac58c..59bf68ef01 100644 --- a/tools/make.py +++ b/tools/make.py @@ -242,6 +242,19 @@ def mikero_windows_registry(path, access=winreg.KEY_READ): def find_depbo_tools(): """Use registry entries to find DePBO-based tools.""" + # try running pboProject once if it's not in registry + try: + pboProject = mikero_windows_registry("pboProject") + print(f"pboProject found normally via registry") + except: + print(f"pboProject not in registry") + pboProject = shutil.which('pboProject') + if (pboProject is None): + print("pboProject not in sys path") + else: + print(f"pboProject startup") + ret = subprocess.call([pboProject, "-P"]) + requiredToolPaths = {"pboProject": None, "rapify": None, "MakePbo": None} failed = False