diff options
author | Max Audron <audron@cocaine.farm> | 2023-01-25 17:15:42 +0100 |
---|---|---|
committer | Max Audron <audron@cocaine.farm> | 2023-01-27 14:44:30 +0100 |
commit | 5eee2ac39863f9e44591b50d0710dd2615416a13 (patch) | |
tree | 72d90317db4e724a9d9ace4f9e8d8f2d4467d5e9 /modules/hashes.py | |
parent | 9beb794e0b0dc1a0f9e89d8e38bd789a8c608397 (diff) |
add data-dir flag and set all user data directories based on it
Diffstat (limited to 'modules/hashes.py')
-rw-r--r-- | modules/hashes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/hashes.py b/modules/hashes.py index b85a7580..819362a3 100644 --- a/modules/hashes.py +++ b/modules/hashes.py @@ -4,8 +4,10 @@ import os.path import filelock
+from modules.paths import data_path
-cache_filename = "cache.json"
+
+cache_filename = os.path.join(data_path, "cache.json")
cache_data = None
|