now using sys.executable, fixes issue with pyenv-win

This commit is contained in:
onyx-and-iris 2024-02-08 13:46:26 +00:00
parent c2cf2fe523
commit 5eeaff2371

View File

@ -1,10 +1,11 @@
import subprocess import subprocess
import sys
from pathlib import Path from pathlib import Path
def ex_obs(): def ex_obs():
path = Path.cwd() / "examples" / "xair_obs" / "." path = Path.cwd() / "examples" / "xair_obs" / "."
subprocess.run(["py", str(path)]) subprocess.run([sys.executable, str(path)])
def test_xair(): def test_xair():