Skip to content

Commit

Permalink
Add support to import custom variables from parent SConstruct (redux)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamscott committed Sep 4, 2023
1 parent 0db95a9 commit 982e01e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ env.PrependENVPath("PATH", os.getenv("PATH"))

# Custom options and profile flags.
customs = ["custom.py"]
try:
customs += Import("customs")
except:
pass
profile = ARGUMENTS.get("profile", "")
if profile:
if os.path.isfile(profile):
Expand Down

0 comments on commit 982e01e

Please sign in to comment.