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.

pull/1343/head
Andrew 2023-12-25 11:29:07 -06:00
parent 1c19d627aa
commit 1a4857cde6
1 changed files with 5 additions and 3 deletions

View File

@ -20,11 +20,13 @@ except:
env.PrependENVPath("PATH", os.getenv("PATH")) env.PrependENVPath("PATH", os.getenv("PATH"))
# Custom options and profile flags. # Custom options and profile flags.
customs = ["custom.py"]
try: try:
customs += Import("customs") Import("customs")
except: except:
pass customs = []
customs += ["custom.py"]
profile = ARGUMENTS.get("profile", "") profile = ARGUMENTS.get("profile", "")
if profile: if profile:
if os.path.isfile(profile): if os.path.isfile(profile):