From 43aa23ea77d0af94819d60886fca599ee057eb44 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 15 Aug 2025 14:15:27 +0400 Subject: [PATCH] refac --- backend/open_webui/env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/env.py b/backend/open_webui/env.py index b6ba940d94..0f603c92d9 100644 --- a/backend/open_webui/env.py +++ b/backend/open_webui/env.py @@ -18,10 +18,10 @@ from open_webui.constants import ERROR_MESSAGES #################################### # Use .resolve() to get the canonical path, removing any '..' or '.' components -_this_file_path_resolved = Path(__file__).resolve() +ENV_FILE_PATH = Path(__file__).resolve() # OPEN_WEBUI_DIR should be the directory where env.py resides (open_webui/) -OPEN_WEBUI_DIR = _this_file_path_resolved.parent +OPEN_WEBUI_DIR = ENV_FILE_PATH.parent # BACKEND_DIR is the parent of OPEN_WEBUI_DIR (backend/) BACKEND_DIR = OPEN_WEBUI_DIR.parent