diff options
author | Jabasukuriputo Wang <wfjsw@users.noreply.github.com> | 2023-07-21 22:00:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 22:00:03 +0800 |
commit | 16eddc622e6d091f51d22269742afddc9b6d0f4b (patch) | |
tree | c78df4d0216a72012d2a620ba36cb8aaa8b24b68 /modules/launch_utils.py | |
parent | 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8 (diff) |
prepend the pythonpath instead of overriding it
Diffstat (limited to 'modules/launch_utils.py')
-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 609a181e..231ebc5f 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -190,7 +190,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:
|