Merge pull request #1220 from adamscott/add-local-custom-support-redux

Add support to import custom variables from parent SConstruct (redux)
pull/1155/head
David Snopek 2023-09-21 15:06:30 -05:00 committed by GitHub
commit 381df0081a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,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):