From 5bb52f95e09370017697c7886d20509f0ea91763 Mon Sep 17 00:00:00 2001 From: viraj21197 Date: Sun, 22 Dec 2024 18:44:46 -0800 Subject: [PATCH] pathify --- snipergw/paths.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snipergw/paths.py b/snipergw/paths.py index 1987823..0b19754 100644 --- a/snipergw/paths.py +++ b/snipergw/paths.py @@ -7,4 +7,7 @@ base_output_dir = os.getenv("SNIPERGW_DIR", Path.home().joinpath("Data/snipergw/")) +if isinstance(base_output_dir, str): + base_output_dir = Path(base_output_dir) + gwemopt_dir = Path(__file__).parent.joinpath("gwemopt")