From 740a6c87e0c673e25e7df67f224e06e92d6b4f9c Mon Sep 17 00:00:00 2001 From: Great <44393369+yaosheng216@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:34:06 +0800 Subject: [PATCH] Update webui.py --- scepter/tools/webui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scepter/tools/webui.py b/scepter/tools/webui.py index 9e2adea..fadef76 100644 --- a/scepter/tools/webui.py +++ b/scepter/tools/webui.py @@ -9,7 +9,6 @@ import sys import gradio as gr -import scepter from scepter.modules.utils.config import Config from scepter.modules.utils.file_system import FS from scepter.modules.utils.logger import get_logger, init_logger @@ -95,7 +94,7 @@ if __name__ == '__main__': '') if args.language == 'en' else info['NAME'] ifid = info['IFID'] if not FS.exists(info['CONFIG']): - info['CONFIG'] = os.path.join(os.path.dirname(scepter.dirname), + info['CONFIG'] = os.path.join(os.path.dirname(get_dirname()), info['CONFIG']) if not FS.exists(info['CONFIG']): raise f"{info['CONFIG']} doesn't exist."