Skip to content

Commit 03092a1

Browse files
committed
allow config folder to change
1 parent cf6d267 commit 03092a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agml/backend/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import logging
1717
import os
1818
import shutil
19+
from pathlib import Path
1920

2021
from agml.utils.logging import log
2122

@@ -24,7 +25,7 @@
2425
# because the default path to save datasets to can be overridden by
2526
# `set_dataset_save_path()`, but we need to keep the super directory to
2627
# access the config file which stores this information in the first place.
27-
SUPER_BASE_DIR = os.path.join(os.path.expanduser("~"), ".agml")
28+
SUPER_BASE_DIR = Path(os.getenv("AGML_CONFIG_DIR", os.path.join(os.path.expanduser("~"), ".agml")))
2829

2930

3031
# This is the path to the saved datasets. By default, this saves to

0 commit comments

Comments
 (0)