aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-15 07:13:16 +0000
committerGitHub <noreply@github.com>2022-10-15 07:13:16 +0000
commitea8aa1701a9f6ecb083356d345458f5baac852a5 (patch)
tree864c371434923eb1b525e335ba71cab79f68a08e /launch.py
parent4d19f3b7d461fe0f63e7ccff936909b0ce0c6126 (diff)
parenta13af34b902bebc5df9509228380206a01f1245b (diff)
downloadstable-diffusion-webui-gfx803-ea8aa1701a9f6ecb083356d345458f5baac852a5.tar.gz
stable-diffusion-webui-gfx803-ea8aa1701a9f6ecb083356d345458f5baac852a5.tar.bz2
stable-diffusion-webui-gfx803-ea8aa1701a9f6ecb083356d345458f5baac852a5.zip
Merge branch 'master' into master
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/launch.py b/launch.py
index a7c5807b..42072f33 100644
--- a/launch.py
+++ b/launch.py
@@ -9,6 +9,7 @@ import platform
dir_repos = "repositories"
python = sys.executable
git = os.environ.get('GIT', "git")
+index_url = os.environ.get('INDEX_URL',"")
def extract_arg(args, name):
@@ -57,7 +58,7 @@ def run_python(code, desc=None, errdesc=None):
def run_pip(args, desc=None):
- return run(f'"{python}" -m pip {args} --prefer-binary', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
+ 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}")
def check_run_python(code):