Class PythonUtils

java.lang.Object
org.dawb.common.util.python.PythonUtils

public class PythonUtils extends Object
PythonUtils
  • Constructor Details

    • PythonUtils

      public PythonUtils()
  • Method Details

    • getProbablePythonPath

      public static 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 String getLegalVarName(String setName, Collection<String> names) throws Exception
      Attempts to generate legal variable name. Does not take into account key words.
      Parameters:
      setName -
      Returns:
      Throws:
      Exception
    • isLegalName

      public static boolean isLegalName(String name)
      Does not fix key words
      Parameters:
      name -
      Returns:
    • main

      public static void main(String[] args)
    • getPythonInterpreterCommand

      public static String getPythonInterpreterCommand()
      Attempts to guess a python interpreter command to use when linking to python with RPC.
      Returns: