make path absolute

This commit is contained in:
2024-06-28 11:48:36 +02:00
committed by Flo Greistorfer
parent a3748af71c
commit f5da8da4a4

View File

@@ -11,7 +11,7 @@ from tqdm.auto import tqdm
import cclicense
environment = Environment(loader=FileSystemLoader("templates/"))
environment = Environment(loader=FileSystemLoader(os.path.join(os.path.abspath(os.path.dirname(__file__)), "templates/")))
_ROOT = "/data/pictures/"
_WEBROOT = "https://pictures.example.com/"