aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-15 07:28:20 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-15 07:28:26 +0000
commitf756bc540a849039d88c19378419838fe87f15b0 (patch)
tree8dc81a2106104ea49eef6527f3f4f2a6c7f1d568 /launch.py
parentc24df4b486a48c60f48276f7760a9acb4a13e22d (diff)
downloadstable-diffusion-webui-gfx803-f756bc540a849039d88c19378419838fe87f15b0.tar.gz
stable-diffusion-webui-gfx803-f756bc540a849039d88c19378419838fe87f15b0.tar.bz2
stable-diffusion-webui-gfx803-f756bc540a849039d88c19378419838fe87f15b0.zip
fix #2588 breaking launch.py (. . .)
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index 42072f33..537670a3 100644
--- a/launch.py
+++ b/launch.py
@@ -9,7 +9,7 @@ import platform
dir_repos = "repositories"
python = sys.executable
git = os.environ.get('GIT', "git")
-index_url = os.environ.get('INDEX_URL',"")
+index_url = os.environ.get('INDEX_URL', "")
def extract_arg(args, name):
@@ -58,7 +58,8 @@ def run_python(code, desc=None, errdesc=None):
def run_pip(args, desc=None):
- return run(f'"{python}" -m pip {args} --prefer-binary{f' --index-url {index_url}' if index_url!='' else ''}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
+ 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}")
def check_run_python(code):