Skip to content

Commit

Permalink
Allow working directory to be switched
Browse files Browse the repository at this point in the history
  • Loading branch information
AutonomicPerfectionist committed Sep 14, 2023
1 parent ee4a94b commit 08cd599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/myrobotlab/ext/python/PythonUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static String setupVenv(String venv, boolean useBundledPython, List<Strin
}

}
return pythonCommand;
return new File(pythonCommand).getAbsolutePath();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/myrobotlab/service/Runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ public void setAutoStart(boolean autoStart) throws IOException {
public void startPythonRuntime() {
PythonUtils.runPythonScriptAsync(
pythonCommand,
new File("."),
PYTHON_SERVICES_PATH + fs + "mrl" + fs + "bootstrap.py",
new File(PYTHON_SERVICES_PATH),
new File(PYTHON_SERVICES_PATH + fs + "mrl" + fs + "bootstrap.py").getAbsolutePath(),
Platform.getLocalInstance().getId() + "-python"
);
}
Expand Down

0 comments on commit 08cd599

Please sign in to comment.