diff options
author | Jabasukuriputo Wang <wfjsw@users.noreply.github.com> | 2023-07-21 14:00:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 14:00:03 +0000 |
commit | 16eddc622e6d091f51d22269742afddc9b6d0f4b (patch) | |
tree | c78df4d0216a72012d2a620ba36cb8aaa8b24b68 /modules/launch_utils.py | |
parent | 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8 (diff) | |
download | stable-diffusion-webui-gfx803-16eddc622e6d091f51d22269742afddc9b6d0f4b.tar.gz stable-diffusion-webui-gfx803-16eddc622e6d091f51d22269742afddc9b6d0f4b.tar.bz2 stable-diffusion-webui-gfx803-16eddc622e6d091f51d22269742afddc9b6d0f4b.zip |
prepend the pythonpath instead of overriding it
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r-- | modules/launch_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 609a181e..231ebc5f 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -190,7 +190,7 @@ def run_extension_installer(extension_dir): try:
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))
except Exception as e:
|