|
@@ -1,6 +1,7 @@
|
|
|
# -*- Python -*-
|
|
|
|
|
|
import os
|
|
|
+import sys
|
|
|
|
|
|
import lit.formats
|
|
|
|
|
@@ -29,7 +30,9 @@ config.environment['PYTHONPATH'] = src_root
|
|
|
config.substitutions.append(('%{src_root}', src_root))
|
|
|
config.substitutions.append(('%{inputs}', os.path.join(
|
|
|
src_root, 'tests', 'Inputs')))
|
|
|
-config.substitutions.append(('%{lit}', os.path.join(src_root, 'lit.py')))
|
|
|
+config.substitutions.append(('%{lit}', "%%{python} %s" % (
|
|
|
+ os.path.join(src_root, 'lit.py'),)))
|
|
|
+config.substitutions.append(('%{python}', sys.executable))
|
|
|
|
|
|
# Enable coverage.py reporting, assuming the coverage module has been installed
|
|
|
# and sitecustomize.py in the virtualenv has been modified appropriately.
|