aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornonnonstop <42905588+nonnonstop@users.noreply.github.com>2023-03-18 16:17:04 +0000
committernonnonstop <42905588+nonnonstop@users.noreply.github.com>2023-03-18 16:17:04 +0000
commitb9a66b02d0b8ca1c3364d9410198530682fd2f6c (patch)
tree6cc2b25169cb940e019cdc7494b3e3b412b55bd8
parenta9fed7c364061ae6efb37f797b6b522cb3cf7aa2 (diff)
downloadstable-diffusion-webui-gfx803-b9a66b02d0b8ca1c3364d9410198530682fd2f6c.tar.gz
stable-diffusion-webui-gfx803-b9a66b02d0b8ca1c3364d9410198530682fd2f6c.tar.bz2
stable-diffusion-webui-gfx803-b9a66b02d0b8ca1c3364d9410198530682fd2f6c.zip
Fix problem of install.py when data-dir is specified
-rw-r--r--launch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index b943fed2..95311d33 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"
@@ -231,7 +231,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():