Skip to content

Commit 34ff52b

Browse files
committed
Add support to import custom variables from parent SConstruct (redux)
1 parent a7d3f00 commit 34ff52b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SConstruct

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ if env.GetOption("num_jobs") == altered_num_jobs:
8585

8686
# Custom options and profile flags.
8787
customs = ["custom.py"]
88+
try:
89+
customs += Import("customs")
90+
except:
91+
pass
8892
profile = ARGUMENTS.get("profile", "")
8993
if profile:
9094
if os.path.isfile(profile):

0 commit comments

Comments
 (0)