[SCons] Fix propagation of user-specified environment variables
The listify function no splits on commas
This commit is contained in:
parent
19c17d149b
commit
e5edc319de
1 changed files with 2 additions and 2 deletions
|
|
@ -691,10 +691,10 @@ if env['env_vars'] == 'all':
|
|||
if 'PYTHONHOME' in env['ENV']:
|
||||
del env['ENV']['PYTHONHOME']
|
||||
elif env['env_vars']:
|
||||
for name in listify(env['env_vars']):
|
||||
for name in env['env_vars'].split(','):
|
||||
if name in os.environ:
|
||||
env['ENV'][name] = os.environ[name]
|
||||
elif name not in defaults.env_vars:
|
||||
elif name not in defaults.env_vars.split(','):
|
||||
print 'WARNING: failed to propagate environment variable', repr(name)
|
||||
print ' Edit cantera.conf or the build command line to fix this.'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue