From f74625583cec1f6be90b2a82af5966ef363d9fe2 Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Tue, 23 Jul 2024 14:07:41 -0500 Subject: [PATCH] enable user plugin cache location --- garak/_plugins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/garak/_plugins.py b/garak/_plugins.py index e2c7fe927..7d6a2747b 100644 --- a/garak/_plugins.py +++ b/garak/_plugins.py @@ -36,7 +36,9 @@ def default(self, obj): class PluginCache: _plugin_cache_file = _config.transient.basedir / "resources" / "plugin_cache.json" - _user_plugin_cache_file = _plugin_cache_file + _user_plugin_cache_file = ( + _config.transient.cache_dir / "resources" / "plugin_cache.json" + ) _plugin_cache_dict = None def __init__(self) -> None: