Skip to content

Commit

Permalink
Change cache dir location to /Users/cgr/.cache (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz authored Dec 20, 2024
1 parent 271c989 commit b3da4eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/earthkit/regrid/utils/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@

import ctypes
import datetime
import getpass
import hashlib
import json
import logging
import os
import platform
import shutil
import sqlite3
import tempfile
import threading
import time
from abc import ABCMeta, abstractmethod
Expand All @@ -41,7 +39,7 @@
SETTINGS = {
"cache-policy": "user",
"user-cache-directory": os.path.join(
tempfile.gettempdir(), f"earthkit-regrid-{getpass.getuser()}"
os.path.expanduser("~"), ".cache", "earthkit-regrid"
),
"maximum-cache-size": 5 * 1024 * 1024 * 1024,
"maximum-cache-disk-usage": 99,
Expand Down Expand Up @@ -965,7 +963,7 @@ def cache_file(
force=None,
replace=None,
):
"""Creates a cache or temporary file in the folder specified by the cache-policy.
"""Create a cache or temporary file in the folder specified by the cache-policy.
Parameters
----------
Expand Down

0 comments on commit b3da4eb

Please sign in to comment.