source/main.py aktualisiert

This commit is contained in:
2026-03-08 00:55:47 +00:00
parent d8f8465f1f
commit 2a616632a8

View File

@@ -47,6 +47,12 @@ for f in [NOTES_FILE, TODO_FILE]:
if not f.exists(): if not f.exists():
f.write_text(f"# {f.name}\nHier fängt dein Gedächtnis an, J.A.R.V.I.S.\n", encoding="utf-8") f.write_text(f"# {f.name}\nHier fängt dein Gedächtnis an, J.A.R.V.I.S.\n", encoding="utf-8")
# Workspace-Ordner und Dateien anlegen
WORKSPACE_DIR.mkdir(exist_ok=True)
# Auch den Daten-Ordner für die Datenbank anlegen!
DATA_DIR.mkdir(exist_ok=True)
# FastAPI Pfade (relativ zu main.py in source/) # FastAPI Pfade (relativ zu main.py in source/)
app = FastAPI() app = FastAPI()
#static_path = os.path.join(os.path.dirname(__file__), "static") #static_path = os.path.join(os.path.dirname(__file__), "static")