We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6d267 commit 03092a1Copy full SHA for 03092a1
agml/backend/config.py
@@ -16,6 +16,7 @@
16
import logging
17
import os
18
import shutil
19
+from pathlib import Path
20
21
from agml.utils.logging import log
22
@@ -24,7 +25,7 @@
24
25
# because the default path to save datasets to can be overridden by
26
# `set_dataset_save_path()`, but we need to keep the super directory to
27
# access the config file which stores this information in the first place.
-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")))
29
30
31
# This is the path to the saved datasets. By default, this saves to
0 commit comments