diff --git a/src/main/java/org/myrobotlab/service/Python.java b/src/main/java/org/myrobotlab/service/Python.java index 18329e7b2e..e8c2fee02e 100644 --- a/src/main/java/org/myrobotlab/service/Python.java +++ b/src/main/java/org/myrobotlab/service/Python.java @@ -985,6 +985,9 @@ public PythonConfig apply(PythonConfig c) { */ public List getScriptList() throws IOException { List sorted = new ArrayList<>(); + if (config.scriptRootDir == null) { + config.scriptRootDir = new File(getDataInstanceDir()).getAbsolutePath(); + } List files = FileIO.getFileList(config.scriptRootDir, true); for (File file : files) { if (file.toString().endsWith(".py")) {