public abstract class Python extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Python(hudson.FilePath home)
Constructor using fields
|
| Modifier and Type | Method and Description |
|---|---|
static Python |
fromHome(hudson.FilePath home)
Create a PYTHON interpreter from its home folder.
|
Map<String,String> |
getEnvironment()
Get the environment for this interpreter with the home variable defined.
|
abstract Map<String,String> |
getEnvironment(boolean includeHomeKey)
Get the environment for this interpreter.
|
abstract hudson.FilePath |
getExecutable()
Get the PYTHON executable.
|
hudson.FilePath |
getHome()
Get the home folder.
|
CPython |
isCPython()
Is this a CPython implementation?
|
Executable |
isExecutable()
Is this an executable implementation?
|
IronPython |
isIronPython()
Is this a IronPython implementation?
|
Jython |
isJython()
Is this a JYTHON implementation?
|
PyPy |
isPyPy()
Is this a PyPy implementation?
|
protected boolean |
isUnix()
Is this PYTHON on UNIX?
|
boolean |
isValid()
Check if this is a valid interpreter.
|
Virtualenv |
isVirtualenv()
Is this a VIRTUALENV?
|
protected boolean |
isWindows()
Is this PYTHON on Windows?
|
protected Python(hudson.FilePath home)
throws IOException,
InterruptedException
home - The home folderInterruptedExceptionIOExceptionpublic hudson.FilePath getHome()
public CPython isCPython()
public PyPy isPyPy()
public Jython isJython()
public IronPython isIronPython()
public Virtualenv isVirtualenv()
public Executable isExecutable()
public boolean isValid()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected boolean isWindows()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected boolean isUnix()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract hudson.FilePath getExecutable()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract Map<String,String> getEnvironment(boolean includeHomeKey) throws IOException, InterruptedException
includeHomeKey - If true, add home variable such as PYTHONHOMEIOExceptionInterruptedExceptionpublic Map<String,String> getEnvironment() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static Python fromHome(hudson.FilePath home) throws IOException, InterruptedException
home - The home folderIOExceptionInterruptedExceptionCopyright © 2004-2018. All Rights Reserved.