1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. """A configure file.""" config = {} def GetConfig(key): try: return config[key] except KeyError: return None def AddConfig(key, value): config[key] = value