Ejemplo n.º 1
0
    def initialize(self, addr=""):
        config = CONFIG()

        if os.path.isfile(config.SETTPATH) or self.migrate:
            config.read()
            config.extend(addr, self.debug)
            config.generate()
        else:
            pull.halt("Migrations aren't applied. Apply them first!", True,
                      pull.RED)