mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 17:03:14 +08:00
action test
This commit is contained in:
parent
311c17a4b1
commit
7951a6093b
@ -455,11 +455,14 @@ def pytest() -> None:
|
||||
raise CleanError('python_paths not found in project config.')
|
||||
|
||||
if platform.system() == 'Windows':
|
||||
sep = ';'
|
||||
pypaths = [
|
||||
os.path.join(os.getcwd(), s.replace('/', '\\')) for s in pypaths
|
||||
]
|
||||
else:
|
||||
sep = ':'
|
||||
|
||||
os.environ['PYTHONPATH'] = ':'.join(pypaths)
|
||||
os.environ['PYTHONPATH'] = sep.join(pypaths)
|
||||
subprocess.run([PYTHON_BIN, '-c', 'import sys; print("FOOO", sys.path)'],
|
||||
check=True)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user