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);