Skip to content

Commit

Permalink
python save file path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Jan 30, 2024
1 parent 4ecbd43 commit c19c590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/myrobotlab/service/Python.java
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,7 @@ public void setLocalScriptDir(String path) {
}

/**
* Saves a script to the file system default will be in
* data/Py4j/{serviceName}/{scriptName}
* Saves a script to the file system
*
* @param scriptName
* @param code
Expand All @@ -750,7 +749,8 @@ public void saveScript(String scriptName, String code) throws IOException {
if (scriptName != null && !scriptName.toLowerCase().endsWith(".py")) {
scriptName = scriptName + ".py";
}
FileIO.toFile(config.scriptRootDir + fs + scriptName, code);
// FileIO.toFile(config.scriptRootDir + fs + scriptName, code);
FileIO.toFile(scriptName, code);
info("saved file %s", scriptName);
}

Expand Down

0 comments on commit c19c590

Please sign in to comment.