Skip to content

Commit 982e01e

Browse files
committed
Add support to import custom variables from parent SConstruct (redux)
1 parent 0db95a9 commit 982e01e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SConstruct

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ env.PrependENVPath("PATH", os.getenv("PATH"))
2222

2323
# Custom options and profile flags.
2424
customs = ["custom.py"]
25+
try:
26+
customs += Import("customs")
27+
except:
28+
pass
2529
profile = ARGUMENTS.get("profile", "")
2630
if profile:
2731
if os.path.isfile(profile):

0 commit comments

Comments
 (0)