org.dawb.common.python
Class PythonUtils

java.lang.Object
  extended by org.dawb.common.python.PythonUtils

public class PythonUtils
extends java.lang.Object

KernelUtils

Author:
gerring

Constructor Summary
PythonUtils()
           
 
Method Summary
static java.lang.String getLegalVarName(java.lang.String setName, java.util.Collection<java.lang.String> names)
          Attempts to generate legal variable name.
static java.lang.String getProbablePythonPath()
          Attempts to determine probable python interpreter path to be used with edna.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonUtils

public PythonUtils()
Method Detail

getProbablePythonPath

public static java.lang.String getProbablePythonPath()
Attempts to determine probable python interpreter path to be used with edna. The pydev extensions also attempt to use this interpreter for the default pydev interpreter when running python written in the workbench.

Returns:

getLegalVarName

public static java.lang.String getLegalVarName(java.lang.String setName,
                                               java.util.Collection<java.lang.String> names)
                                        throws java.lang.Exception
Attempts to generate legal variable name.

Parameters:
setName -
Returns:
Throws:
java.lang.Exception