Skip to content
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

Store user settings in a personal config file #197

Closed
marcelzwiers opened this issue Sep 6, 2023 · 0 comments
Closed

Store user settings in a personal config file #197

marcelzwiers opened this issue Sep 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@marcelzwiers
Copy link
Collaborator

marcelzwiers commented Sep 6, 2023

Users may want to use a custom template as default, without installing it in the central heuristics folder. Also, storing some persistent data can be useful, such as a flag for not showing the splash screen. It can be stored in the user home directory:

heuristics = pathlib.Path.home()/'.bidscoin'/'heuristics'
config = pathlib.Path.home()/'.bidscoin'/'config.toml'
if not config.is_file():
   config.parent.mkdir()
@marcelzwiers marcelzwiers added the enhancement New feature or request label Sep 6, 2023
@marcelzwiers marcelzwiers self-assigned this Sep 6, 2023
@marcelzwiers marcelzwiers changed the title Store user setting in .bidscoin/config.toml Store user settings in a personal config file Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant