diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-29 09:00:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 09:00:34 +0300 |
commit | 84d41e49b3674699155ba2b7d80fd6f7f8957b7a (patch) | |
tree | 9681ea8fcd95264d7be73b839f8972d17ff0014f /modules/launch_utils.py | |
parent | 18ba89863d911ccccfcf41c1510bc657f782a7af (diff) | |
parent | 99acbd5ebe3e43e7d07905c7fc274b321cc905be (diff) |
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))
|