mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
fix
This commit is contained in:
parent
7f77b3addb
commit
74ca4189e2
1 changed files with 5 additions and 1 deletions
|
|
@ -27,6 +27,8 @@ from constants import ERROR_MESSAGES
|
||||||
BACKEND_DIR = Path(__file__).parent # the path containing this file
|
BACKEND_DIR = Path(__file__).parent # the path containing this file
|
||||||
BASE_DIR = BACKEND_DIR.parent # the path containing the backend/
|
BASE_DIR = BACKEND_DIR.parent # the path containing the backend/
|
||||||
|
|
||||||
|
print(BASE_DIR)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from dotenv import load_dotenv, find_dotenv
|
from dotenv import load_dotenv, find_dotenv
|
||||||
|
|
||||||
|
|
@ -121,7 +123,9 @@ def parse_section(section):
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
changelog_content = (BASE_DIR / "CHANGELOG.md").read_text()
|
with open(BASE_DIR / "CHANGELOG.md", "r") as file:
|
||||||
|
changelog_content = file.read()
|
||||||
|
|
||||||
except:
|
except:
|
||||||
changelog_content = (pkgutil.get_data("open_webui", "CHANGELOG.md") or b"").decode()
|
changelog_content = (pkgutil.get_data("open_webui", "CHANGELOG.md") or b"").decode()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue