From cd409e114459b87c2aded26611c4bd27614f590d Mon Sep 17 00:00:00 2001 From: Marcel Zwiers Date: Tue, 13 Feb 2024 17:27:12 +0100 Subject: [PATCH] Catch for empty BIDSCOIN_CONFIG environment variable (Github issue #226) --- bidscoin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bidscoin/__init__.py b/bidscoin/__init__.py index 0dabc29d..a16ed48c 100644 --- a/bidscoin/__init__.py +++ b/bidscoin/__init__.py @@ -62,7 +62,7 @@ DEBUG = platform.os.getenv('BIDSCOIN_DEBUG','').upper() in ('1', 'TRUE', 'Y', 'YES') # Create a BIDScoin user configuration directory if needed and load the BIDScoin user settings -configfile = Path(platform.os.getenv('BIDSCOIN_CONFIG')) or Path.home()/'.bidscoin'/__version__/'config.toml' +configfile = Path(platform.os.getenv('BIDSCOIN_CONFIG') or Path.home()/'.bidscoin'/__version__/'config.toml') templatefolder = configfile.parent/'templates' templatefolder.mkdir(parents=True, exist_ok=True) if not configfile.is_file():