Skip to content

Commit

Permalink
SCons: Warn when user tries to import unexisting env variable
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
  • Loading branch information
dustdfg committed Dec 19, 2024
1 parent b9437c3 commit 320cebc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ if env["import_env_vars"]:
for env_var in str(env["import_env_vars"]).split(","):
if env_var in os.environ:
env["ENV"][env_var] = os.environ[env_var]
else:
print_warning(f"Environment variable {env_var} doesn't exist and wasn't imported")

# Platform selection: validate input, and add options.

Expand Down

0 comments on commit 320cebc

Please sign in to comment.