Add support to import custom variables from parent SConstruct (redux)

pull/1220/head
Adam Scott 2023-08-17 09:28:44 -04:00
parent 0db95a92a6
commit 982e01ec7f
No known key found for this signature in database
GPG Key ID: 1352C2919D96DDDF
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ env.PrependENVPath("PATH", os.getenv("PATH"))
# Custom options and profile flags. # Custom options and profile flags.
customs = ["custom.py"] customs = ["custom.py"]
try:
customs += Import("customs")
except:
pass
profile = ARGUMENTS.get("profile", "") profile = ARGUMENTS.get("profile", "")
if profile: if profile:
if os.path.isfile(profile): if os.path.isfile(profile):