mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Tools - make.py will try running pboProject once if it's not in registry (#9356)
This commit is contained in:
parent
8f24884f73
commit
6c674533b3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user