diff options
Diffstat (limited to 'SCons/Action.py')
-rw-r--r-- | SCons/Action.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/SCons/Action.py b/SCons/Action.py index e29c4e9..6e67c7f 100644 --- a/SCons/Action.py +++ b/SCons/Action.py @@ -756,9 +756,15 @@ def get_default_ENV(env): def _resolve_shell_env(env, target, source): + """ + First get default environment. + Then if SHELL_ENV_GENERATORS is set and is iterable, + call each callable in that list to allow it to alter + the created execution environment. + """ ENV = get_default_ENV(env) - shell_gen = env.get('SHELL_ENV_GENERATORS') - if shell_gen is not None: + shell_gen = env.get('SHELL_ENV_GENERATORS') + if shell_gen: try: shell_gens = iter(shell_gen) except TypeError: |