From 1a4857cde69555b038721bb3d495b7e1743d5474 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 25 Dec 2023 11:29:07 -0600 Subject: [PATCH] fix import logic for adding files to customs. Current logic throws exeption when trying to append to customs list because Import function has no return. --- SConstruct | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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):