Merge pull request #11921 from wfjsw/prepend-pythonpath

prepend the pythonpath instead of overriding it
This commit is contained in:
AUTOMATIC1111 2023-07-21 18:00:03 +03:00
parent c5934fb6e3
commit 51206edb62

View File

@ -196,7 +196,7 @@ def run_extension_installer(extension_dir):
try: try:
env = os.environ.copy() env = os.environ.copy()
env['PYTHONPATH'] = os.path.abspath(".") env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env['PYTHONPATH']}"
print(run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env)) print(run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env))
except Exception as e: except Exception as e: