fable.python.jep
Class PythonInfo

java.lang.Object
  extended by fable.python.jep.PythonInfo

public class PythonInfo
extends java.lang.Object

A class to get various kinds of information about Python running from Jep.


Constructor Summary
PythonInfo()
           
 
Method Summary
static java.lang.String getPathFromEnvironment()
          Gets the PATH from the environment as a list with one line for each element in the path.
static java.lang.String getPathFromEnvironment(java.lang.String linePrefix)
          Gets the PATH from the environment as a list with one line for each element in the path.
static java.lang.String getPythonInfo()
          Gets information about Python.
static java.lang.String getPythonPathFromEnvironment()
          Gets the PYTHONPATH from the environment as a list with one line for each element in the path.
static java.lang.String getPythonPathFromEnvironment(java.lang.String linePrefix)
          Gets the PYTHONPATH from the environment as a list with one line for each element in the path.
static java.lang.String getPythonPathFromPython()
          Gets the PYTHONPATH from Python, using Jep, as a list with one line for each element in the path.
static java.lang.String getPythonSysValue(java.lang.String linePrefix, java.lang.String var)
          Gets a variable from sys in Python, using Jep.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonInfo

public PythonInfo()
Method Detail

getPythonInfo

public static java.lang.String getPythonInfo()
Gets information about Python.

Returns:

getPythonSysValue

public static java.lang.String getPythonSysValue(java.lang.String linePrefix,
                                                 java.lang.String var)
Gets a variable from sys in Python, using Jep.

Parameters:
var - The variable (xxx in sys.xxx).
Returns:

getPythonPathFromEnvironment

public static java.lang.String getPythonPathFromEnvironment()
Gets the PYTHONPATH from the environment as a list with one line for each element in the path.

Returns:

getPythonPathFromEnvironment

public static java.lang.String getPythonPathFromEnvironment(java.lang.String linePrefix)
Gets the PYTHONPATH from the environment as a list with one line for each element in the path.

Parameters:
linePrefix - String to add before each line in the path list.
Returns:

getPathFromEnvironment

public static java.lang.String getPathFromEnvironment()
Gets the PATH from the environment as a list with one line for each element in the path.

Returns:

getPathFromEnvironment

public static java.lang.String getPathFromEnvironment(java.lang.String linePrefix)
Gets the PATH from the environment as a list with one line for each element in the path.

Parameters:
linePrefix - String to add before each line in the path list.
Returns:

getPythonPathFromPython

public static java.lang.String getPythonPathFromPython()
Gets the PYTHONPATH from Python, using Jep, as a list with one line for each element in the path.

Returns: