Пример #1
0
 def clean(self):
     for x in ('scripts', 'ebook-convert-complete'):
         x = self.j(self.RESOURCES, x+'.pickle')
         if os.path.exists(x):
             os.remove(x)
     from setup.commands import kakasi, coffee
     kakasi.clean()
     coffee.clean()
     for x in ('builtin_recipes.xml', 'builtin_recipes.zip',
             'template-functions.json', 'user-manual-translation-stats.json'):
         x = self.j(self.RESOURCES, x)
         if os.path.exists(x):
             os.remove(x)
Пример #2
0
 def clean(self):
     for x in ('scripts', 'ebook-convert-complete'):
         x = self.j(self.RESOURCES, x+'.pickle')
         if os.path.exists(x):
             os.remove(x)
     from setup.commands import kakasi, coffee
     kakasi.clean()
     coffee.clean()
     for x in ('builtin_recipes.xml', 'builtin_recipes.zip',
             'template-functions.json'):
         x = self.j(self.RESOURCES, x)
         if os.path.exists(x):
             os.remove(x)
Пример #3
0
    def clean(self):
        for x in ("scripts", "ebook-convert-complete"):
            x = self.j(self.RESOURCES, x + ".pickle")
            if os.path.exists(x):
                os.remove(x)
        from setup.commands import kakasi, coffee

        kakasi.clean()
        coffee.clean()
        for x in ("builtin_recipes.xml", "builtin_recipes.zip", "template-functions.json"):
            x = self.j(self.RESOURCES, x)
            if os.path.exists(x):
                os.remove(x)