action test

This commit is contained in:
Eric Froemling 2020-03-26 19:15:14 -07:00
parent 621bfea07b
commit 434c1c6258

View File

@ -443,6 +443,7 @@ def compile_python_files() -> None:
def pytest() -> None:
"""Run pytest with project environment set up properly."""
import platform
from efrotools import get_config, PYTHON_BIN
# Grab our python paths for the project and stuff them in PYTHONPATH.
@ -450,6 +451,9 @@ def pytest() -> None:
if pypaths is None:
raise CleanError('python_paths not found in project config.')
if platform.system() == 'Windows':
pypaths = [s.replace('/', '\\') for s in pypaths]
os.environ['PYTHONPATH'] = ':'.join(pypaths)
print('SET VAL TO', ':'.join(pypaths), flush=True)