correct webpath when webui_dir is not work_dir

This commit is contained in:
w-e-w
2023-09-13 16:05:55 +09:00
parent 6fb2194d9c
commit 5b761b49ad
3 changed files with 5 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ import shlex
commandline_args = os.environ.get('COMMANDLINE_ARGS', "")
sys.argv += shlex.split(commandline_args)
cwd = os.getcwd()
modules_path = os.path.dirname(os.path.realpath(__file__))
script_path = os.path.dirname(modules_path)