[SCons] Fix propagation of user-specified environment variables

The listify function no splits on commas
This commit is contained in:
Ray Speth 2017-02-11 16:35:07 -05:00
parent 19c17d149b
commit e5edc319de

View file

@ -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.'