~doanac/ubuntu-ci-services-itself/cli-error-logging

Viewing all changes in revision 149.

  • Committer: Andy Doan
  • Date: 2014-01-25 19:50:24 UTC
  • Revision ID: andy.doan@canonical.com-20140125195024-u77u7wpgph0uooad
cli: improve loading of configuration data

The config data was being loaded at import time before the CLI
could even try deal with the usage statement. This changes thing
so the loading of the configuration is done after argparse.

While doing this change I consolidated the required configuration
into a single file. That should be easier to deal with.

As a result of the change, the imports used by some of the modules
needed to be updated so they use "utils" and not just import objects
from utils into each module's namespace.

This allows our test cases to now run without needing a special
config file.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: