Tools - make.py will try running pboProject once if it's not in registry (#9356)

This commit is contained in:
PabstMirror 2023-08-30 19:09:46 -05:00 committed by GitHub
parent 8f24884f73
commit 6c674533b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,6 +242,19 @@ def mikero_windows_registry(path, access=winreg.KEY_READ):
def find_depbo_tools(): def find_depbo_tools():
"""Use registry entries to find DePBO-based 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} requiredToolPaths = {"pboProject": None, "rapify": None, "MakePbo": None}
failed = False failed = False