public final class PythonInterpreterConfig extends Object
For common or important configuration options, this class provides getters and setters methods * with detailed inline documentation.
For example:
PythonInterpreterConfig config =
PythonInterpreterConfig.newBuilder()
.setPythonExec("/path/venv/bin/python")
.addPythonPaths("/path/package")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
PythonInterpreterConfig.ExecType
The Execution type specifies how to execute the Python function in concurrency.
|
static class |
PythonInterpreterConfig.PythonInterpreterConfigBuilder |
| Modifier and Type | Method and Description |
|---|---|
PythonInterpreterConfig.ExecType |
getExecType()
Returns the execType of python interpreter.
|
String[] |
getPaths()
Returns the search paths.
|
String |
getPythonExec()
Returns the path of python interpreter.
|
String |
getPythonHome()
Returns the python home.
|
String |
getWorkingDirectory()
Returns the working directory.
|
static PythonInterpreterConfig.PythonInterpreterConfigBuilder |
newBuilder()
A builder for configuring the
PythonInterpreterConfig. |
public String getPythonHome()
public String getWorkingDirectory()
public String[] getPaths()
public String getPythonExec()
public PythonInterpreterConfig.ExecType getExecType()
public static PythonInterpreterConfig.PythonInterpreterConfigBuilder newBuilder()
PythonInterpreterConfig.Copyright © 2022–2025. All rights reserved.