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

Put configuration parameters in a config file #1

Closed
ljdursi opened this issue Jun 3, 2019 · 1 comment
Closed

Put configuration parameters in a config file #1

ljdursi opened this issue Jun 3, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ljdursi
Copy link
Contributor

ljdursi commented Jun 3, 2019

There's a number of ways this can be done, but a simple and common way to do this is with configparser: https://docs.python.org/3/library/configparser.html

Here's an example of combining configparser with argparse to allow the config parameters to be overridden on the command line: https://stackoverflow.com/questions/3609852/which-is-the-best-way-to-allow-configuration-options-be-overridden-at-the-comman

@ljdursi ljdursi added the enhancement New feature or request label Jun 3, 2019
@zhengwin
Copy link
Contributor

/home/jackson/Documents/GitHub/htsget_app/config.ini

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

2 participants