fixes bug subprocess not inheriting variables

(pyenv-win issue)
This commit is contained in:
onyx-and-iris 2023-08-19 21:40:57 +01:00
parent d9e8c5391a
commit 7d7704dd28

View File

@ -1,7 +1,8 @@
import subprocess
import sys
from pathlib import Path
def ex_debug():
path = Path.cwd() / "examples" / "debug" / "."
subprocess.run(["py", str(path)])
scriptpath = Path.cwd() / "examples" / "debug" / "."
subprocess.run([sys.executable, str(scriptpath)])