[SCons] Fix Python 3.6 compatibility

The build was failing with:
  TypeError: 'mappingproxy' object does not support item assignment
This commit is contained in:
emccorkle 2017-10-26 10:59:55 -04:00 committed by Ray Speth
parent 60d2075492
commit 684262e945

View file

@ -310,7 +310,7 @@ defaults.python_prefix = '$prefix' if env['OS'] != 'Windows' else ''
# Transform lists into strings to keep cantera.conf clean
for key,value in defaults.__dict__.items():
if isinstance(value, (list, tuple)):
defaults.__dict__[key] = ' '.join(value)
setattr(defaults, key, ' '.join(value))
# **************************************
# *** Read user-configurable options ***