2
0
Эх сурвалжийг харах

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

Add support to import custom variables from parent SConstruct (redux)
David Snopek 1 жил өмнө
parent
commit
381df0081a
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      SConstruct

+ 4 - 0
SConstruct

@@ -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):