From 615eeabbb15b90bc5a65a3a857bf539695a63c4a Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Sat, 19 Jul 2025 17:56:45 +0200 Subject: [PATCH] Update GeneralUtils.java --- .../java/stirling/software/common/util/GeneralUtils.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java b/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java index 793e7b7e7..5a44d405c 100644 --- a/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java +++ b/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java @@ -463,7 +463,12 @@ public class GeneralUtils { "scriptName must be either 'png_to_webp.py' or 'split_photos.py'"); } - Path scriptsDir = Paths.get("/config/scripts/python"); + Path scriptsDir = + Paths.get( + InstallationPathConfig.getConfigPath() + + "scripts" + + File.separator + + "python"); Files.createDirectories(scriptsDir); Path scriptFile = scriptsDir.resolve(scriptName);