private void configSearchPaths()

in src/main/java/pemja/core/PythonInterpreter.java [155:173]


    private void configSearchPaths(PythonInterpreterConfig config) {
        String[] paths = config.getPaths();
        if (paths != null) {
            exec("import sys");
            for (int i = paths.length - 1; i >= 0; i--) {
                exec(String.format("sys.path.insert(0, r'%s')", paths[i]));
            }
        }
        if (config.getPythonExec() == null) {
            String pythonModulePath =
                    String.join(
                            File.separator,
                            System.getProperty("user.dir"),
                            "src",
                            "main",
                            "python");
            exec(String.format("sys.path.insert(0, r'%s')", pythonModulePath));
        }
    }