Skip to content

Commit 7ee5515

Browse files
committed
more resilient dataset path expansion
1 parent 5bdacf5 commit 7ee5515

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mp_api/client/core/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import pathlib
23
from multiprocessing import cpu_count
34
from typing import List
45

@@ -89,7 +90,7 @@ class MAPIClientSettings(BaseSettings):
8990
)
9091

9192
LOCAL_DATASET_CACHE: str = Field(
92-
os.path.expanduser("~") + "/mp_datasets",
93+
pathlib.Path("~/mp_datasets").expanduser(),
9394
description="Target directory for downloading full datasets",
9495
)
9596

0 commit comments

Comments
 (0)