diff options
author | Jabasukuriputo Wang <wfjsw@users.noreply.github.com> | 2023-07-22 10:09:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 10:09:00 +0000 |
commit | 2a7e34fe79c82ac264919be8965b8d51afa32ac1 (patch) | |
tree | e19e83cb3032a93051186c6d0e49086058870d42 /modules/launch_utils.py | |
parent | 90eb731ff1d73fdc5872ff9682d5c88c9737ba38 (diff) | |
download | stable-diffusion-webui-gfx803-2a7e34fe79c82ac264919be8965b8d51afa32ac1.tar.gz stable-diffusion-webui-gfx803-2a7e34fe79c82ac264919be8965b8d51afa32ac1.tar.bz2 stable-diffusion-webui-gfx803-2a7e34fe79c82ac264919be8965b8d51afa32ac1.zip |
fix https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/11921#issuecomment-1646547908
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 18b444d4..0c863e4a 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -194,7 +194,7 @@ def run_extension_installer(extension_dir): try:
env = os.environ.copy()
- env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env['PYTHONPATH']}"
+ env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env.get('PYTHONPATH')}"
print(run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env))
except Exception as e:
|