From 7d7704dd28021a44f3f06e42f3fade967aa1eb48 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 19 Aug 2023 21:40:57 +0100 Subject: [PATCH] fixes bug subprocess not inheriting variables (pyenv-win issue) --- scripts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts.py b/scripts.py index 0052ebb..13748b3 100644 --- a/scripts.py +++ b/scripts.py @@ -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)])