Fix problem when --data-dir is specified

This commit is contained in:
nonnonstop
2023-04-22 15:00:31 +09:00
parent c205251c65
commit 5222919ebb
3 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -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