From 513d107f03752fc0709753ef6af2e94f36802b65 Mon Sep 17 00:00:00 2001 From: ltdrdata Date: Sun, 7 May 2023 18:01:40 +0900 Subject: [PATCH] use sys.executable to install instead of 'python' --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 757011ad..70abd2a1 100644 --- a/__init__.py +++ b/__init__.py @@ -269,7 +269,7 @@ def gitclone_install(files): if os.path.exists(requirements_path): print(f"Install: pip packages") - install_cmd = ["python", "-m", "pip", "install", "-r", "requirements.txt"] + install_cmd = [sys.executable, "-m", "pip", "install", "-r", "requirements.txt"] code = subprocess.run(install_cmd, cwd=repo_path) if code.returncode != 0: @@ -278,7 +278,7 @@ def gitclone_install(files): if os.path.exists(install_script_path): print(f"Install: install script") - install_cmd = ["python", "install.py"] + install_cmd = [sys.executable, "install.py"] code = subprocess.run(install_cmd, cwd=repo_path) if code.returncode != 0: