mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +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.')
|
raise CleanError('python_paths not found in project config.')
|
||||||
|
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
|
sep = ';'
|
||||||
pypaths = [
|
pypaths = [
|
||||||
os.path.join(os.getcwd(), s.replace('/', '\\')) for s in 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)'],
|
subprocess.run([PYTHON_BIN, '-c', 'import sys; print("FOOO", sys.path)'],
|
||||||
check=True)
|
check=True)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user