-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to config file location #111
Changes to config file location #111
Conversation
Default directory changed from within site-packages to <HOME>/.config/brainglobe . User can override with env var BRAINGLOBE_CONFIG_DIR.
Fixed bug in config.write_config_value where config file was written to default location even if custom path passed in. This change allows the caller to override the config directory in code, which takes precedence over the default location and the BRAINGLOBE_CONFIG_DIR variables. Clients can use this to set the config dir via their command-line flags.
Thanks @chrisroat! This looks fine to me. If you could just ensure the tests pass - I think you'll just need to run black:
Happy to merge when you are @vigji, @FedeClaudi. |
Added commit to blacken. |
Looks good to me! Definitively better this way. Thanks @chrisroat, and sorry for the delayed review! Good to merge for me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just an import to remove and then good to go!
flaked |
Happy to merge once @FedeClaudi has OK'd it. |
looks good to me |
Change config file directory. Default directory changed from within site-packages to /.config/brainglobe . User can override with env var BRAINGLOBE_CONFIG_DIR.
Add config dir parameter to BrainGlobeAtlas
Fixed bug in config.write_config_value where config file was written to default location even if custom path passed in.
This change allows the caller to override the config directory in code, which takes precedence over the default location and the BRAINGLOBE_CONFIG_DIR variables. Clients can use this to set the config dir via their command-line flags.