Package ghidra.jython
Class JythonUtils
java.lang.Object
ghidra.jython.JythonUtils
Python utility method class.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
setupJythonCacheDir
(TaskMonitor monitor) Sets up the jython cache directory.static File
Sets up the jython home directory.
-
Field Details
-
JYTHON_NAME
- See Also:
-
JYTHON_CACHEDIR
- See Also:
-
JYTHON_SRC
- See Also:
-
-
Constructor Details
-
JythonUtils
public JythonUtils()
-
-
Method Details
-
setupJythonHomeDir
Sets up the jython home directory. This is the directory that has the "Lib" directory in it.- Returns:
- The jython home directory.
- Throws:
IOException
- If there was a disk-related problem setting up the home directory.
-
setupJythonCacheDir
Sets up the jython cache directory. This is a temporary space that jython source files get compiled to and cached. It should NOT be in the Ghidra installation directory, because some installations will not have the appropriate directory permissions to create new files in.- Parameters:
monitor
- A monitor to use during the cache directory setup.- Returns:
- The jython cache directory.
- Throws:
IOException
- If there was a disk-related problem setting up the cache directory.CancelledException
- If the user cancelled the setup.
-