aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-25 09:36:35 +0000
committerGitHub <noreply@github.com>2023-03-25 09:36:35 +0000
commitdb7caf9b9cb353fdb92f179a02ba71c923e2dcec (patch)
tree93bd1e85103efdb4a2eb8cacf5c022901fd51c43 /launch.py
parente5dd5d73357715110c18c1ac31711f3a81b84a0c (diff)
parentc1294d849a50b9b2995aa257adbb918837c4b384 (diff)
downloadstable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.tar.gz
stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.tar.bz2
stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.zip
Merge branch 'master' into patch-1
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index b943fed2..5f836d22 100644
--- a/launch.py
+++ b/launch.py
@@ -14,7 +14,7 @@ parser.add_argument("--data-dir", type=str, default=os.path.dirname(os.path.real
args, _ = parser.parse_known_args(sys.argv)
script_path = os.path.dirname(__file__)
-data_path = os.getcwd()
+data_path = args.data_dir
dir_repos = "repositories"
dir_extensions = "extensions"
@@ -24,6 +24,8 @@ index_url = os.environ.get('INDEX_URL', "")
stored_commit_hash = None
skip_install = False
+if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
+ os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
def check_python_version():
is_windows = platform.system() == "Windows"
@@ -231,7 +233,7 @@ def run_extensions_installers(settings_file):
return
for dirname_extension in list_extensions(settings_file):
- run_extension_installer(os.path.join(dir_extensions, dirname_extension))
+ run_extension_installer(os.path.join(data_path, dir_extensions, dirname_extension))
def prepare_environment():