diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-29 06:00:34 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-29 06:02:11 +0000 |
commit | 00e393ce10901e7c7c8bcf85d641382c7fe2efb4 (patch) | |
tree | 280e39cc662931de134508d64a250fb19ba3ff2d /modules/launch_utils.py | |
parent | 0c9282b84d68a9b01528a663d90c7acbb0c5e266 (diff) | |
download | stable-diffusion-webui-gfx803-00e393ce10901e7c7c8bcf85d641382c7fe2efb4.tar.gz stable-diffusion-webui-gfx803-00e393ce10901e7c7c8bcf85d641382c7fe2efb4.tar.bz2 stable-diffusion-webui-gfx803-00e393ce10901e7c7c8bcf85d641382c7fe2efb4.zip |
Merge pull request #12833 from catboxanon/fix/dont-print-blank-stdout
Don't print blank stdout in extension installers
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r-- | modules/launch_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 090be328..9aa0f071 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -228,7 +228,9 @@ def run_extension_installer(extension_dir): env = os.environ.copy()
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))
+ stdout = run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env)
+ if stdout:
+ print(stdout)
except Exception as e:
errors.report(str(e))
|