in src/main/java/pemja/utils/CommonUtils.java [55:74]
public String getPemJaModulePath(String pythonExec) {
if (pythonExec == null) {
// run in source code
return String.join(
File.separator,
System.getProperty("user.dir"),
"src",
"main",
"python",
"pemja");
} else {
String out;
try {
out = execute(new String[] {pythonExec, "-c", GET_PEMJA_MODULE_PATH_SCRIPT});
} catch (IOException e) {
throw new RuntimeException("Failed to get PemJa module path", e);
}
return String.join(File.pathSeparator, out.trim().split("\n"));
}
}