mirror of
https://github.com/lucasjinreal/Namo-R1.git
synced 2026-01-13 22:07:17 +08:00
15 lines
503 B
Python
15 lines
503 B
Python
import os
|
|
import open_webui
|
|
|
|
# Show where the Open WebUI package is installed
|
|
print("Open WebUI is installed at:", open_webui.__file__)
|
|
|
|
# Construct a potential path to webui.db (commonly located in 'data/webui.db')
|
|
db_path = os.path.join(os.path.dirname(open_webui.__file__), "data", "webui.db")
|
|
print("Potential path to webui.db:", db_path)
|
|
|
|
# Check if webui.db exists at that path
|
|
if os.path.exists(db_path):
|
|
print("webui.db found at:", db_path)
|
|
else:
|
|
print("webui.db not found at:", db_path) |