From e6db18fc92e316daf0eaefabda003531f2b7bf8a Mon Sep 17 00:00:00 2001 From: Carlos Loucera Date: Fri, 5 May 2023 12:24:45 +0200 Subject: [PATCH] Convert to absolute paths. --- drexml/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drexml/utils.py b/drexml/utils.py index 7ef96b4c..f28eb5e8 100644 --- a/drexml/utils.py +++ b/drexml/utils.py @@ -147,7 +147,7 @@ def get_out_path(disease): The desired path. """ - env_possible = Path(disease) + env_possible = Path(disease).absolute() if env_possible.exists() and (env_possible.suffix == ".env"): print(f"Working with experiment {env_possible.parent.name}")