Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#12833 from catboxanon/fix/dont-print…
Browse files Browse the repository at this point in the history
…-blank-stdout

Don't print blank stdout in extension installers
  • Loading branch information
AUTOMATIC1111 authored Aug 29, 2023
2 parents 18ba898 + 99acbd5 commit 84d41e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/launch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 84d41e4

Please sign in to comment.