diff --git a/SConstruct b/SConstruct index b86ccf6f..6ad80e28 100644 --- a/SConstruct +++ b/SConstruct @@ -20,11 +20,13 @@ except: env.PrependENVPath("PATH", os.getenv("PATH")) # Custom options and profile flags. -customs = ["custom.py"] + try: - customs += Import("customs") + Import("customs") except: - pass + customs = [] +customs += ["custom.py"] + profile = ARGUMENTS.get("profile", "") if profile: if os.path.isfile(profile):