public final class MainInterpreter
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stop the interpreter thread.
|
static void |
setInitParams(PyConfig config)
Sets interpreter settings for the main Python interpreter.
|
static void |
setSharedModulesArgv(java.lang.String... argv)
Sets the sys.argv values on the main interpreter.
|
void |
sharedImport(java.lang.String module)
Import a module into the main interpreter on the correct thread for that
interpreter.
|
public void sharedImport(java.lang.String module)
throws JepException
module - the name of the module to importJepException - if an error occurspublic void close()
close in interface java.lang.AutoCloseablepublic static void setInitParams(PyConfig config) throws JepException
config - the python configuration to use.JepException - if an error occurspublic static void setSharedModulesArgv(java.lang.String... argv)
throws JepException
argv - the arguments to be set on Python's sys.argv for the main
interpreterJepException - if an error occurs