From b109627bf95ba48ac6df8c79d58bd151598add49 Mon Sep 17 00:00:00 2001 From: Florian Greistorfer Date: Mon, 26 Jan 2026 15:47:10 +0100 Subject: [PATCH] fixed so symlink gets resolved --- builder.py | 2 +- modules/argumentparser.py | 2 +- modules/generate_html.py | 2 +- modules/logger.py | 2 +- modules/svg_handling.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builder.py b/builder.py index 883a408..71dd311 100755 --- a/builder.py +++ b/builder.py @@ -22,7 +22,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)) STATIC_FILES_DIR = os.path.join(os.path.abspath(SCRIPTDIR), "files") VERSION = open(os.path.join(SCRIPTDIR, ".version"), "r", encoding="utf-8").read() RAW_EXTENSIONS = [ diff --git a/modules/argumentparser.py b/modules/argumentparser.py index ee5bfe5..02d72e9 100644 --- a/modules/argumentparser.py +++ b/modules/argumentparser.py @@ -16,7 +16,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)) DEFAULT_THEME_PATH = os.path.join(SCRIPTDIR, "templates", "default.css") DEFAULT_AUTHOR = "Author" diff --git a/modules/generate_html.py b/modules/generate_html.py index 6c9feea..ba6a3ca 100644 --- a/modules/generate_html.py +++ b/modules/generate_html.py @@ -24,7 +24,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)) FAVICON_PATH = ".static/favicon.ico" GLOBAL_CSS_PATH = ".static/global.css" EXCLUDES = ["index.html", "manifest.json", "robots.txt"] diff --git a/modules/logger.py b/modules/logger.py index 7252cf9..15d91b0 100644 --- a/modules/logger.py +++ b/modules/logger.py @@ -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") diff --git a/modules/svg_handling.py b/modules/svg_handling.py index f18e30d..d1b5f82 100644 --- a/modules/svg_handling.py +++ b/modules/svg_handling.py @@ -22,7 +22,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)) STATIC_FILES_DIR = os.path.join(SCRIPTDIR, "files") ICON_SIZES = ["36x36", "48x48", "72x72", "96x96", "144x144", "192x192", "512x512"]