Merge pull request #3878 from zxcmehran/patch-1

Update installer.py not to destroy the original PYTHONPATH for instal…
This commit is contained in:
Vladimir Mandic
2025-04-18 13:46:31 -04:00
committed by GitHub
+1 -1
View File
@@ -973,7 +973,7 @@ def run_extension_installer(folder):
try:
log.debug(f"Extension installer: {path_installer}")
env = os.environ.copy()
env['PYTHONPATH'] = os.path.abspath(".")
env['PYTHONPATH'] = os.path.abspath(".") + ";" + env['PYTHONPATH']
result = subprocess.run(f'"{sys.executable}" "{path_installer}"', shell=True, env=env, check=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=folder)
txt = result.stdout.decode(encoding="utf8", errors="ignore")
debug(f'Extension installer: file="{path_installer}" {txt}')