@@ -0,0 +1,1846 @@
+# Copyright (c) 2013 Molly White%0A#%0A# Permission is hereby granted, free of charge, to any person obtaining a copy%0A# of this software and associated documentation files (the %22Software%22), to deal%0A# in the Software without restriction, including without limitation the rights%0A# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A# copies of the Software, and to permit persons to whom the Software is%0A# furnished to do so, subject to the following conditions:%0A#%0A# The above copyright notice and this permission notice shall be included in%0A# all copies or substantial portions of the Software.%0A#%0A# THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0A# SOFTWARE.%0A%0Afrom os import path%0Aimport configparser%0Aimport logging%0A%0A__all__ = %5B%22Configure%22%5D%0A%0Aclass Configure(object):%0A    '''Creates, modifies, or opens a configuration file.'''%0A    def __init__(self, config, root, logger):%0A        self._config = configparser.ConfigParser()%0A        self._config_path = path.join(self._root, %22config.cfg%22)%0A        self._logger = logging.getLogger(%22GB%22)%0A        %0A    def load(self):%0A        file = self._config_path%0A        if path.isfile(file):%0A            try:%0A                self._config.read_file(open(self._config_path))%0A            except IOError:%0A                self._logger.exception(%22Unable to open %7B%7D%22.format(self._config_path))%0A        else:%0A            self.make_new()%0A    %0A    def make_new(self):%0A        print (%22Made%22)%0A

Add Config.py