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

Create settings file #9

Open
richleland opened this issue Feb 13, 2012 · 0 comments
Open

Create settings file #9

richleland opened this issue Feb 13, 2012 · 0 comments

Comments

@richleland
Copy link
Contributor

What do you think about creating a settings.py that handles the reading and parsing of the config file? I think it would be nice to separate that logic into another location and allow it to be used anywhere by any of the other files. An example of this would be:

from multimechanize.settings import configure
config = configure(config_file)

That could then return a config object with the following:

config.run_time
config.rampup
config.restuls_ts_interval
config.console_logging
config.progress_bar
config.results_database
config.post_run_script
config.xml_report
config.user_group_configs

A separate file would also give us a place to put any configuration-related utility methods.

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