Replaced sep with more friendly path.join
This commit is contained in:
parent
09ec0f4620
commit
ca9a9ce5d8
@ -1,11 +1,11 @@
|
|||||||
from os import makedirs, sep
|
from os import makedirs, path
|
||||||
from modules.app import app
|
from modules.app import app
|
||||||
from modules.utils import *
|
from modules.utils import *
|
||||||
from modules.scheduler import scheduler
|
from modules.scheduler import scheduler
|
||||||
from modules.extensions_loader import dynamic_import_from_src
|
from modules.extensions_loader import dynamic_import_from_src
|
||||||
from fastapi.responses import FileResponse
|
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)
|
@app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user