Merge pull request #12833 from catboxanon/fix/dont-print-blank-stdout

Don't print blank stdout in extension installers
This commit is contained in:
AUTOMATIC1111 2023-08-29 09:00:34 +03:00 committed by GitHub
commit 84d41e49b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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))