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

[Feature Request] Config File #2

Open
AlexHedley opened this issue Jul 13, 2019 · 0 comments
Open

[Feature Request] Config File #2

AlexHedley opened this issue Jul 13, 2019 · 0 comments

Comments

@AlexHedley
Copy link

@AzadRai would it be worth adding a config.ini file much like the CWA/CWP samples?

config.ini

[Credentials]
ClientID=
config = configparser.ConfigParser()
config.read(config_file)

Then grab the various inputs that need to be changed in each file instead.

# Setting variables from config.ini file
CONFIG_CREDS_SECTION = 'Credentials'
CLIENT_ID = 'ClientId'
...
client_id = config.get(CONFIG_CREDS_SECTION, CLIENT_ID)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant