This commit is contained in:
2026-02-04 08:55:30 +01:00
committed by Florian Greistorfer
parent cad6d88b22
commit 895ac03590
4 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ from datetime import datetime
from pythonjsonlogger import json as jsonlogger
# Constants for file paths and exclusions
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__)).removesuffix(__package__)
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__)).removesuffix(__package__ if __package__ else "")
LOG_DIR = os.path.join(SCRIPTDIR, "logs")
LATEST_LOG_FILE = os.path.join(LOG_DIR, "latest.jsonl")