aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-21 18:00:03 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-25 16:19:08 +0300
commit51206edb620b098f286cc33fab748ab90c5b20d4 (patch)
tree5a48ccdbc1ec2d10280f830af4b95d6ba0be127a /modules
parentc5934fb6e3007795efcf9b71be6df1581f61e4cb (diff)
Merge pull request #11921 from wfjsw/prepend-pythonpath
prepend the pythonpath instead of overriding it
Diffstat (limited to 'modules')
-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: