From 148ecd86e67ee33a83a4be7a17d1bf310caf1120 Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Mon, 29 Jun 2020 08:16:28 -0400 Subject: [PATCH] Moved Jython cache directory from user temp to user settings directory. --- .../Python/src/main/java/ghidra/python/PythonUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ghidra/Features/Python/src/main/java/ghidra/python/PythonUtils.java b/Ghidra/Features/Python/src/main/java/ghidra/python/PythonUtils.java index 10c10cd62b..c0f9fbd4ab 100644 --- a/Ghidra/Features/Python/src/main/java/ghidra/python/PythonUtils.java +++ b/Ghidra/Features/Python/src/main/java/ghidra/python/PythonUtils.java @@ -66,8 +66,9 @@ public class PythonUtils { public static File setupPythonCacheDir(TaskMonitor monitor) throws CancelledException, IOException { - File cacheDir = new File(Application.getUserTempDirectory(), PYTHON_CACHEDIR); - if (!FileUtilities.createDir(cacheDir)) { + File devDir = new File(Application.getUserSettingsDirectory(), "dev"); + File cacheDir = new File(devDir, PYTHON_CACHEDIR); + if (!FileUtilities.mkdirs(cacheDir)) { throw new IOException("Failed to create the python cache directory at: " + cacheDir); }