From f3b1555a6b9cf4fd22e8c78e9105e9c96f073490 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 9 Jan 2014 23:12:03 +0000 Subject: [PATCH] [Cython] By default, use same interpreter for mechanism conversions Fixes failures when only the Python 3 module is present. --- interfaces/cython/cantera/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interfaces/cython/cantera/__init__.py b/interfaces/cython/cantera/__init__.py index 2703eb17e..d1dfcb99a 100644 --- a/interfaces/cython/cantera/__init__.py +++ b/interfaces/cython/cantera/__init__.py @@ -4,4 +4,9 @@ from .liquidvapor import * from .utils import * import os as _os +import sys as _sys add_directory(_os.path.join(_os.path.dirname(__file__), 'data')) + +# Python interpreter used for converting mechanisms +if 'PYTHON_CMD' not in _os.environ: + _os.environ['PYTHON_CMD'] = _sys.executable