We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
data_home
Path()
1 parent 3bc275b commit eb5cd29Copy full SHA for eb5cd29
1 file changed
libsvmdata/abstraction.py
@@ -18,7 +18,9 @@ def _get_data_home(subdir_name=""):
18
data_home = os.environ.get("XDG_DATA_HOME", None)
19
if data_home is None:
20
data_home = Path.home() / "data"
21
- return data_home / subdir_name
+ else:
22
+ data_home = Path(data_home)
23
+ return data_home / subdir_name if subdir_name else data_home
24
25
26
class AbstractDataset(ABC):
0 commit comments