aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-01-25 16:15:42 +0000
committerMax Audron <audron@cocaine.farm>2023-01-27 13:44:30 +0000
commit5eee2ac39863f9e44591b50d0710dd2615416a13 (patch)
tree72d90317db4e724a9d9ace4f9e8d8f2d4467d5e9 /modules/ui.py
parent9beb794e0b0dc1a0f9e89d8e38bd789a8c608397 (diff)
downloadstable-diffusion-webui-gfx803-5eee2ac39863f9e44591b50d0710dd2615416a13.tar.gz
stable-diffusion-webui-gfx803-5eee2ac39863f9e44591b50d0710dd2615416a13.tar.bz2
stable-diffusion-webui-gfx803-5eee2ac39863f9e44591b50d0710dd2615416a13.zip
add data-dir flag and set all user data directories based on it
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 85ae62c7..0117df3e 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -21,7 +21,7 @@ from modules.call_queue import wrap_gradio_gpu_call, wrap_queued_call, wrap_grad
from modules import sd_hijack, sd_models, localization, script_callbacks, ui_extensions, deepbooru, sd_vae, extra_networks, postprocessing, ui_components, ui_common, ui_postprocessing
from modules.ui_components import FormRow, FormGroup, ToolButton, FormHTML
-from modules.paths import script_path
+from modules.paths import script_path, data_path
from modules.shared import opts, cmd_opts, restricted_opts
@@ -1497,8 +1497,8 @@ def create_ui():
with open(cssfile, "r", encoding="utf8") as file:
css += file.read() + "\n"
- if os.path.exists(os.path.join(script_path, "user.css")):
- with open(os.path.join(script_path, "user.css"), "r", encoding="utf8") as file:
+ if os.path.exists(os.path.join(data_path, "user.css")):
+ with open(os.path.join(data_path, "user.css"), "r", encoding="utf8") as file:
css += file.read() + "\n"
if not cmd_opts.no_progressbar_hiding: