File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ from pathlib import Path
2
+ import platformdirs
3
+ from pydra import __version__
4
+
5
+ user_cache_dir = Path (
6
+ platformdirs .user_cache_dir (
7
+ appname = "pydra" ,
8
+ appauthor = "nipype" ,
9
+ version = __version__ ,
10
+ )
11
+ )
Original file line number Diff line number Diff line change 17
17
Set ,
18
18
)
19
19
from filelock import SoftFileLock
20
- import platformdirs
21
20
import attrs .exceptions
22
21
from fileformats .core import FileSet
23
- from pydra . _version import __version__
22
+ from . import user_cache_dir
24
23
25
24
logger = logging .getLogger ("pydra" )
26
25
@@ -99,11 +98,7 @@ def location_default(cls):
99
98
try :
100
99
location = os .environ [cls .LOCATION_ENV_VAR ]
101
100
except KeyError :
102
- location = platformdirs .user_cache_dir (
103
- appname = "pydra" ,
104
- appauthor = "nipype" ,
105
- version = __version__ ,
106
- )
101
+ location = user_cache_dir / "hash_cache"
107
102
return location
108
103
109
104
# the default needs to be an instance method
You can’t perform that action at this time.
0 commit comments