Mercurial > hg > configuration
changeset 4:92e1b2dd60c8
more stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 24 Mar 2012 22:14:59 -0700 |
parents | 1175fbabacaf |
children | 7910b0ef0bab |
files | configuration/config.py tests/example.py |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configuration/config.py Sat Mar 24 20:42:29 2012 -0700 +++ b/configuration/config.py Sat Mar 24 22:14:59 2012 -0700 @@ -7,6 +7,16 @@ import sys import optparse +try: + import json +except ImportError: + try: + import simplejson as json + except ImportError: + json = None + +__all__ = ['Configuration'] + class Configuration(object): options = {}