소스 검색

Add support to import custom variables from parent SConstruct (redux)

Adam Scott 2 년 전
부모
커밋
982e01ec7f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      SConstruct

+ 4 - 0
SConstruct

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