aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-22 16:37:03 +0300
committerGitHub <noreply@github.com>2023-07-22 16:37:03 +0300
commit0615b3c5325ca87e1d3bbf28d637d6b966c76880 (patch)
tree26630a2e37ac7b7f35aa8aa08a734e426ebbddd9
parent2d635c0192b5d9d8c730c3afe4b5b996dec45653 (diff)
parent3c26734d603560f57f7a145eed6cbdd50d20379c (diff)
Merge pull request #11926 from wfjsw/fix-env-get-1
fix 11291#issuecomment-1646547908
-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 0178e1b0..c9e4344b 100644
--- a/modules/launch_utils.py
+++ b/modules/launch_utils.py
@@ -194,7 +194,7 @@ def run_extension_installer(extension_dir):
try:
env = os.environ.copy()
- env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env['PYTHONPATH']}"
+ env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env.get('PYTHONPATH', '')}"
print(run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env))
except Exception as e: