diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-21 15:00:03 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-25 13:19:08 +0000 |
commit | 51206edb620b098f286cc33fab748ab90c5b20d4 (patch) | |
tree | 5a48ccdbc1ec2d10280f830af4b95d6ba0be127a | |
parent | c5934fb6e3007795efcf9b71be6df1581f61e4cb (diff) | |
download | stable-diffusion-webui-gfx803-51206edb620b098f286cc33fab748ab90c5b20d4.tar.gz stable-diffusion-webui-gfx803-51206edb620b098f286cc33fab748ab90c5b20d4.tar.bz2 stable-diffusion-webui-gfx803-51206edb620b098f286cc33fab748ab90c5b20d4.zip |
Merge pull request #11921 from wfjsw/prepend-pythonpath
prepend the pythonpath instead of overriding it
-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 03552bc2..93838745 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'] = 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:
|