diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-28 09:24:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 09:24:40 +0300 |
commit | ce72af87d3b05c946bc82033786fc340f1c20512 (patch) | |
tree | e02a69bc9b18f36db76590bd6312320685901b5e /modules/hashes.py | |
parent | 0834d4ce374225131e025540220c727e352a3e43 (diff) | |
parent | 23a9d5e27390846dea0895a02c04aec9583a4d38 (diff) |
Merge pull request #7199 from maxaudron/feature/configurable-data-dir
Add flag to store user data sepperate from source code
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
|