fixed so symlink gets resolved

This commit is contained in:
2026-01-26 15:47:10 +01:00
committed by Florian Greistorfer
parent 4ef1b429f2
commit b109627bf9
5 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ if __package__ is None:
PACKAGE = ""
else:
PACKAGE = __package__
SCRIPTDIR = os.path.abspath(os.path.dirname(__file__).removesuffix(PACKAGE))
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__).removesuffix(PACKAGE))
LOG_DIR = os.path.join(SCRIPTDIR, "logs")
LATEST_LOG_FILE = os.path.join(LOG_DIR, "latest.jsonl")