aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-04-29 14:07:21 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-04-29 14:07:21 +0000
commit1bab1797c0334bdc829c3ee4481316385fd5dbe6 (patch)
tree059f9cfaf2b8042e5b490b998d12ad5c3c0a2d1e
parentad7fd488bc8d67c5acfe98ba7c5fcf586c7a61dd (diff)
downloadstable-diffusion-webui-gfx803-1bab1797c0334bdc829c3ee4481316385fd5dbe6.tar.gz
stable-diffusion-webui-gfx803-1bab1797c0334bdc829c3ee4481316385fd5dbe6.tar.bz2
stable-diffusion-webui-gfx803-1bab1797c0334bdc829c3ee4481316385fd5dbe6.zip
use parsed commandline args for --skip-install
-rw-r--r--launch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/launch.py b/launch.py
index 8865af9a..a6072f5d 100644
--- a/launch.py
+++ b/launch.py
@@ -120,12 +120,12 @@ def run_python(code, desc=None, errdesc=None):
return run(f'"{python}" -c "{code}"', desc, errdesc)
-def run_pip(args, desc=None, live=False):
- if "--skip-install" in sys.argv:
+def run_pip(command, desc=None, live=False):
+ if args.skip_install:
return
index_url_line = f' --index-url {index_url}' if index_url != '' else ''
- return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
+ return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
def check_run_python(code):