mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
gui clean should remove the RCC file as well
This commit is contained in:
parent
75859ba62b
commit
2288a26612
@ -6,6 +6,7 @@ __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import os
|
||||
from contextlib import suppress
|
||||
|
||||
from setup import Command, __appname__
|
||||
|
||||
@ -79,5 +80,6 @@ class GUI(Command):
|
||||
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…
x
Reference in New Issue
Block a user