def update(self, key): self.key = key logger.head('Checking for update...') if self.check(): util.mkdirs(os.path.join(os.getcwd(), 'tmp')) logger.head('Downloading relo... (%s)' % self.key) self.download() logger.head('Extracting update...') self.extract() else: sys.exit()
def init_home(): if not os.path.isdir(PATH_HOME_ETC): mkdirs(PATH_HOME_ETC)