mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-29 02:23:22 +08:00
action test
This commit is contained in:
parent
621bfea07b
commit
434c1c6258
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user