Fix shared request access and Jellyfin-ready pipeline status
This commit is contained in:
@@ -25,7 +25,8 @@ SQLITE_MMAP_SIZE_BYTES = 256 * 1024 * 1024
|
||||
def _db_path() -> str:
|
||||
path = settings.sqlite_path or "data/magent.db"
|
||||
if not os.path.isabs(path):
|
||||
path = os.path.join(os.getcwd(), path)
|
||||
app_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
path = os.path.join(app_root, path)
|
||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||
return path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user