private String getPythonLibrary()

in src/main/java/pemja/utils/CommonUtils.java [153:166]


    private String getPythonLibrary(String pythonExec) {
        try {
            String out;
            if (pythonExec == null) {
                // run in source code, use default `python3` / `python` to find python lib library.
                out = execute(new String[] {getPythonCommand(), "-c", GET_PYTHON_LIB_PATH_SCRIPT});
            } else {
                out = execute(new String[] {pythonExec, "-c", GET_PYTHON_LIB_PATH_SCRIPT});
            }
            return String.join(File.pathSeparator, out.trim().split("\n"));
        } catch (IOException e) {
            throw new RuntimeException("Failed to find libpython", e);
        }
    }