mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Fix problem when --data-dir is specified
This commit is contained in:
@@ -16,6 +16,6 @@ parser_pre.add_argument("--models-dir", type=str, default="models", help="base p
|
||||
cmd_opts_pre = parser_pre.parse_known_args()[0]
|
||||
data_path = cmd_opts_pre.data_dir
|
||||
|
||||
models_path = os.path.join(cmd_opts_pre.models_dir)
|
||||
models_path = os.path.join(data_path, cmd_opts_pre.models_dir)
|
||||
extensions_dir = os.path.join(data_path, "extensions")
|
||||
extensions_builtin_dir = os.path.join(data_path, "extensions-builtin")
|
||||
extensions_builtin_dir = os.path.join(script_path, "extensions-builtin")
|
||||
|
||||
+1
-1
@@ -1724,7 +1724,7 @@ def html_css():
|
||||
continue
|
||||
head += stylesheet(cssfile)
|
||||
if opts.gradio_theme == 'black-orange':
|
||||
head += stylesheet(os.path.join(data_path, "javascript", "black-orange.css"))
|
||||
head += stylesheet(os.path.join(script_path, "javascript", "black-orange.css"))
|
||||
if os.path.exists(os.path.join(data_path, "user.css")):
|
||||
head += stylesheet(os.path.join(data_path, "user.css"))
|
||||
return head
|
||||
|
||||
Reference in New Issue
Block a user