aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-21 18:00:03 +0300
committerGitHub <noreply@github.com>2023-07-21 18:00:03 +0300
commited4d7912c7abf8d5cc0f8bdce3e5e0d896288a85 (patch)
treed87dec2e7773967d6f9efe3970abbb9e87beeda8 /modules
parent2f98f7c924dfc719da2619fedbba75b1a5ea995c (diff)
parent16eddc622e6d091f51d22269742afddc9b6d0f4b (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: