Skip to content

Commit

Permalink
Minor fix when reading the path to the config file from the environme…
Browse files Browse the repository at this point in the history
…nt (Github issue #226)
  • Loading branch information
marcelzwiers committed Feb 13, 2024
1 parent 89fb796 commit 4f13041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bidscoin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = platform.os.getenv('BIDSCOIN_CONFIG', Path.home()/'.bidscoin'/__version__/'config.toml')
configfile = Path(platform.os.getenv('BIDSCOIN_CONFIG', Path.home()/'.bidscoin'/__version__/'config.toml'))
templatefolder = configfile.parent/'templates'
templatefolder.mkdir(parents=True, exist_ok=True)
if not configfile.is_file():
Expand Down

0 comments on commit 4f13041

Please sign in to comment.