aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-21 15:00:03 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-25 13:19:08 +0000
commit51206edb620b098f286cc33fab748ab90c5b20d4 (patch)
tree5a48ccdbc1ec2d10280f830af4b95d6ba0be127a
parentc5934fb6e3007795efcf9b71be6df1581f61e4cb (diff)
downloadstable-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.py2
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: