Package org.dawb.common.util.python
Class PythonUtils
java.lang.Object
org.dawb.common.util.python.PythonUtils
PythonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetLegalVarName(String setName, Collection<String> names) Attempts to generate legal variable name.static StringAttempts to determine probable python interpreter path to be used with edna.static StringAttempts to guess a python interpreter command to use when linking to python with RPC.static booleanisLegalName(String name) Does not fix key wordsstatic void
-
Constructor Details
-
PythonUtils
public PythonUtils()
-
-
Method Details
-
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
Attempts to generate legal variable name. Does not take into account key words.- Parameters:
setName-- Returns:
- Throws:
Exception
-
isLegalName
Does not fix key words- Parameters:
name-- Returns:
-
main
-
getPythonInterpreterCommand
Attempts to guess a python interpreter command to use when linking to python with RPC.- Returns:
-