mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 20:22:18 +08:00
Moved Jython cache directory from user temp to user settings directory.
This commit is contained in:
@@ -66,8 +66,9 @@ public class PythonUtils {
|
|||||||
public static File setupPythonCacheDir(TaskMonitor monitor)
|
public static File setupPythonCacheDir(TaskMonitor monitor)
|
||||||
throws CancelledException, IOException {
|
throws CancelledException, IOException {
|
||||||
|
|
||||||
File cacheDir = new File(Application.getUserTempDirectory(), PYTHON_CACHEDIR);
|
File devDir = new File(Application.getUserSettingsDirectory(), "dev");
|
||||||
if (!FileUtilities.createDir(cacheDir)) {
|
File cacheDir = new File(devDir, PYTHON_CACHEDIR);
|
||||||
|
if (!FileUtilities.mkdirs(cacheDir)) {
|
||||||
throw new IOException("Failed to create the python cache directory at: " + cacheDir);
|
throw new IOException("Failed to create the python cache directory at: " + cacheDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user