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 folderInterruptedException
IOException
public 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
IOException
InterruptedException
protected boolean isWindows() throws IOException, InterruptedException
IOException
InterruptedException
protected boolean isUnix() throws IOException, InterruptedException
IOException
InterruptedException
public abstract hudson.FilePath getExecutable() throws IOException, InterruptedException
IOException
InterruptedException
public abstract Map<String,String> getEnvironment(boolean includeHomeKey) throws IOException, InterruptedException
includeHomeKey
- If true, add home variable such as PYTHONHOMEIOException
InterruptedException
public Map<String,String> getEnvironment() throws IOException, InterruptedException
IOException
InterruptedException
public static Python fromHome(hudson.FilePath home) throws IOException, InterruptedException
home
- The home folderIOException
InterruptedException
Copyright © 2004-2018. All Rights Reserved.