Esempio n. 1
0
    def main(self):
        self.opts.directory = os.path.normpath(self.opts.directory)
        os.chdir(self.opts.directory)
        self.config = ConfigParser.SafeConfigParser()
        self.config.read('mamematic.ini')

        gamelist = GameList()
        if self.opts.xml:
            gamelist.readxml(self.opts.xml)
        else:
            gamelist.readxml(self.config.get('mame','exec'))

        for g in gamelist:
            log.info(g)

        return(0)