Fixed running the Python unit tests when building with the Intel compiler

This commit is contained in:
Ray Speth
2012-03-07 00:52:00 +00:00
parent 692f1249ae
commit 4534819d1d

View File

@@ -11,6 +11,10 @@ localenv.Append(CPPPATH=['#ext/gtest/include', '#include'],
localenv['ENV']['PYTHONPATH'] = Dir('#interfaces/python').abspath
localenv['ENV']['CANTERA_DATA'] = Dir('#data/inputs').abspath
# Needed for Intel runtime libraries when compiling with ICC
if 'LD_LIBRARY_PATH' in os.environ:
localenv['ENV']['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']
def testRunner(target, source, env):
"""SCons Action to run a compiled test program"""
program = source[0]