mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 12:25:41 +01:00
gui clean should remove the RCC file as well
This commit is contained in:
parent
d73144440c
commit
7d559fb1a7
1 changed files with 4 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
|||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import os
|
||||
from contextlib import suppress
|
||||
|
||||
from setup import Command, __appname__
|
||||
|
||||
|
|
@ -79,5 +80,6 @@ def clean(self):
|
|||
c = self.form_to_compiled_form(form)
|
||||
if os.path.exists(c):
|
||||
os.remove(c)
|
||||
if os.path.exists(self.QRC):
|
||||
os.remove(self.QRC)
|
||||
for x in (self.QRC, self.RCC):
|
||||
with suppress(FileNotFoundError):
|
||||
os.remove(x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue