Package hec.rss.model
Class JythonUtil
java.lang.Object
hec.rss.model.JythonUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.python.util.PythonInterpreterstatic StringbuildPythonPath(String appHome) static org.python.core.PyCodecompileScript(String script, String scriptFilepath) static Stringstatic BooleangetBoolean(String name, Boolean defaultValue) This method is similar to Boolean.getBoolean except this method returns defaultValue unless the system property named by the argument exists and is equal to the string"true"static voidstatic voidpossiblyConnectToDebugger(org.python.util.PythonInterpreter interp, mil.army.usace.hec.rmi.csinterface.RmiFileManager fm)
-
Field Details
-
LOG_SCRIPT_TEXT_LEVEL
public static final int LOG_SCRIPT_TEXT_LEVEL- See Also:
-
pyInitCalled
-
PROP_PREFIX
- See Also:
-
FILE
- See Also:
-
DEBUGGER
- See Also:
-
HOSTNAME
- See Also:
-
PORT
- See Also:
-
REDIRECT_OUTPUT
- See Also:
-
SUSPEND_AFTER_CONNECT
- See Also:
-
LOCALHOST
- See Also:
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
-
Constructor Details
-
JythonUtil
public JythonUtil()
-
-
Method Details
-
getAppHome
-
buildPythonPath
-
buildPythonInterpreter
public static org.python.util.PythonInterpreter buildPythonInterpreter() -
initializePythonInterpreter
public static void initializePythonInterpreter() -
compileScript
-
possiblyConnectToDebugger
public static void possiblyConnectToDebugger(org.python.util.PythonInterpreter interp, mil.army.usace.hec.rmi.csinterface.RmiFileManager fm) -
getBoolean
This method is similar to Boolean.getBoolean except this method returns defaultValue unless the system property named by the argument exists and is equal to the string"true"- Parameters:
name- Property to look fordefaultValue- value to return if specified property does not exist or is not "true"- Returns:
- See Also:
-