From ca9a9ce5d84bc9eee09a032d0704d144b4148040 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sun, 12 Mar 2023 14:50:26 +0100 Subject: [PATCH] Replaced sep with more friendly path.join --- photos_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)