tssbot-api: load dotenv before uvicorn to pick up STORAGE_VOL_PATH

This commit is contained in:
FURRO404
2026-06-28 07:00:47 -07:00
parent 24335a2677
commit 2b792b4d0b
+7 -1
View File
@@ -1,8 +1,14 @@
from __future__ import annotations
import os
from pathlib import Path
import uvicorn
from dotenv import load_dotenv
_HERE = Path(__file__).resolve().parent.parent
load_dotenv(_HERE / ".env")
import uvicorn # noqa: E402
if __name__ == "__main__":
uvicorn.run(