diff --git a/photos_api.py b/photos_api.py index b464449..dc84e4a 100644 --- a/photos_api.py +++ b/photos_api.py @@ -1,11 +1,11 @@ -from os import makedirs, sep +from os import makedirs, path from modules.app import app from modules.utils import * from modules.scheduler import scheduler from modules.extensions_loader import dynamic_import_from_src from fastapi.responses import FileResponse -makedirs(f"data{sep}users", exist_ok=True) +makedirs(path.join("data", "users"), exist_ok=True) @app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)