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 Aug 17, 2023
1 parent a7d3f00 commit 34ff52b
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 @@ -85,6 +85,10 @@ if env.GetOption("num_jobs") == altered_num_jobs:

# 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 34ff52b

Please sign in to comment.