diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-22 13:37:03 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-25 13:20:07 +0000 |
commit | 1f59be5188c0989db3bc8900f2c11b6706c07d70 (patch) | |
tree | ccd279e0a4cf412294f55fc67a0c319d63875241 | |
parent | cad87bf4e3e0b0a759afa94e933527c3123d59bc (diff) | |
download | stable-diffusion-webui-gfx803-1f59be5188c0989db3bc8900f2c11b6706c07d70.tar.gz stable-diffusion-webui-gfx803-1f59be5188c0989db3bc8900f2c11b6706c07d70.tar.bz2 stable-diffusion-webui-gfx803-1f59be5188c0989db3bc8900f2c11b6706c07d70.zip |
Merge pull request #11926 from wfjsw/fix-env-get-1
fix 11291#issuecomment-1646547908
-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 93c8c8ca..e1c9cfbe 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -196,7 +196,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:
|