aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2023-05-11 07:30:29 +0000
committerAarni Koskela <akx@iki.fi>2023-05-11 08:57:36 +0000
commit49db24ce273ebccb598fc13de946d1ac3cad38f8 (patch)
tree58cb64e9350422033a2900c8787e77ba4910fe39 /launch.py
parent4445314c683920c4b093a61f39feca39dfdad501 (diff)
downloadstable-diffusion-webui-gfx803-49db24ce273ebccb598fc13de946d1ac3cad38f8.tar.gz
stable-diffusion-webui-gfx803-49db24ce273ebccb598fc13de946d1ac3cad38f8.tar.bz2
stable-diffusion-webui-gfx803-49db24ce273ebccb598fc13de946d1ac3cad38f8.zip
launch.py: Add debugging envvar to see install output
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index cfc0cffa..136e8855 100644
--- a/launch.py
+++ b/launch.py
@@ -22,6 +22,9 @@ stored_commit_hash = None
stored_git_tag = None
dir_repos = "repositories"
+# Whether to default to printing command output
+default_command_live = (os.environ.get('WEBUI_LAUNCH_LIVE_OUTPUT') == "1")
+
if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
@@ -85,7 +88,7 @@ def git_tag():
return stored_git_tag
-def run(command, desc=None, errdesc=None, custom_env=None, live=False):
+def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live):
if desc is not None:
print(desc)
@@ -135,7 +138,7 @@ def run_python(code, desc=None, errdesc=None):
return run(f'"{python}" -c "{code}"', desc, errdesc)
-def run_pip(command, desc=None, live=False):
+def run_pip(command, desc=None, live=default_command_live):
if args.skip_install:
return