From 982e01ec7f2eb38b725282e82584cbce201c0cce Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Thu, 17 Aug 2023 09:28:44 -0400 Subject: Add support to import custom variables from parent SConstruct (redux) --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 7c652f8..40ac835 100644 --- a/SConstruct +++ b/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): -- cgit v1.2.3