diff options
author | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-28 11:17:47 -0400 |
---|---|---|
committer | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-28 11:17:47 -0400 |
commit | 99acbd5ebe3e43e7d07905c7fc274b321cc905be (patch) | |
tree | 5cdb15b2145363f224d05719de5d679c974e267c /modules | |
parent | d1c93c38220d62485f8e14e6331f9b6b5e1e3259 (diff) |
Don't print blank stdout in extension installers
Diffstat (limited to 'modules')
-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 7e4d5a61..43b986c6 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))
|