From 434c1c625814d386aca6d0e22e701903f74ebedc Mon Sep 17 00:00:00 2001 From: Eric Froemling Date: Thu, 26 Mar 2020 19:15:14 -0700 Subject: [PATCH] action test --- tools/efrotools/snippets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/efrotools/snippets.py b/tools/efrotools/snippets.py index b4bbb20f..313f1788 100644 --- a/tools/efrotools/snippets.py +++ b/tools/efrotools/snippets.py @@ -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)