From 7980338699d33bbfcda4c6c6884f4e1404283a68 Mon Sep 17 00:00:00 2001 From: Milagros Marin Date: Mon, 2 Oct 2023 20:10:21 +0200 Subject: [PATCH] add current_project_folder env variable to __init_ --- element_deeplabcut/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/element_deeplabcut/__init__.py b/element_deeplabcut/__init__.py index 3ef2702..1dd032b 100644 --- a/element_deeplabcut/__init__.py +++ b/element_deeplabcut/__init__.py @@ -14,4 +14,7 @@ "DLC_ROOT_DATA_DIR", dj.config["custom"].get("dlc_root_data_dir", "") ) +dj.config["custom"]["current_project_folder"] = os.getenv( + "CURRENT_PROJECT_FOLDER", dj.config["custom"].get("current_project_folder", "") +) db_prefix = dj.config["custom"].get("database.prefix", "") \ No newline at end of file