Skip to content

Commit 1f59be5

Browse files
committed
Merge pull request AUTOMATIC1111#11926 from wfjsw/fix-env-get-1
fix 11291#issuecomment-1646547908
1 parent cad87bf commit 1f59be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎modules/launch_utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def run_extension_installer(extension_dir):
196196

197197
try:
198198
env = os.environ.copy()
199-
env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env['PYTHONPATH']}"
199+
env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env.get('PYTHONPATH', '')}"
200200

201201
print(run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env))
202202
except Exception as e:

0 commit comments

Comments
 (0)