public static class PythonInterpreterConfig.PythonInterpreterConfigBuilder extends Object
| Constructor and Description |
|---|
PythonInterpreterConfigBuilder() |
| Modifier and Type | Method and Description |
|---|---|
PythonInterpreterConfig.PythonInterpreterConfigBuilder |
addPythonPaths(String... paths)
Adds multiple search paths for module files.
|
PythonInterpreterConfig.PythonInterpreterConfigBuilder |
addPythonPaths(String paths)
Adds the search paths for module files.
|
PythonInterpreterConfig |
build()
Creates the actual
PythonInterpreterConfig. |
PythonInterpreterConfig.PythonInterpreterConfigBuilder |
setExcType(PythonInterpreterConfig.ExecType excType)
Configures the exec type of python interpreter.
|
PythonInterpreterConfig.PythonInterpreterConfigBuilder |
setPythonExec(String pythonExec)
Configures the path of python interpreter.
|
PythonInterpreterConfig.PythonInterpreterConfigBuilder |
setPythonHome(String pythonHome)
Sets Python Home.
|
PythonInterpreterConfig.PythonInterpreterConfigBuilder |
setWorkingDirectory(String workingDirectory)
Sets the working directory.
|
public PythonInterpreterConfig.PythonInterpreterConfigBuilder setPythonHome(String pythonHome)
public PythonInterpreterConfig.PythonInterpreterConfigBuilder setWorkingDirectory(String workingDirectory)
public PythonInterpreterConfig.PythonInterpreterConfigBuilder addPythonPaths(String paths)
File.pathSeparator
PythonInterpreterConfig config =
PythonInterpreterConfig.newBuilder()
.addPythonPaths("path1:path2:path3")
.build();
paths - One or more directory path names separated by File.pathSeparator.public PythonInterpreterConfig.PythonInterpreterConfigBuilder addPythonPaths(String... paths)
PythonInterpreterConfig config =
PythonInterpreterConfig.newBuilder()
.addPythonPaths("path1", "path2", "path3")
.build();
paths - Multiple search paths.public PythonInterpreterConfig.PythonInterpreterConfigBuilder setPythonExec(String pythonExec)
PythonInterpreterConfig config =
PythonInterpreterConfig.newBuilder()
.setPythonExec("/path/venv/bin/python")
.build();
pythonExec - The path of python interpreter.public PythonInterpreterConfig.PythonInterpreterConfigBuilder setExcType(PythonInterpreterConfig.ExecType excType)
public PythonInterpreterConfig build()
PythonInterpreterConfig.Copyright © 2022–2025. All rights reserved.