gui clean should remove the RCC file as well

This commit is contained in:
Kovid Goyal 2022-01-11 12:23:55 +05:30
parent 75859ba62b
commit 2288a26612
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -6,6 +6,7 @@ __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
import os import os
from contextlib import suppress
from setup import Command, __appname__ from setup import Command, __appname__
@ -79,5 +80,6 @@ class GUI(Command):
c = self.form_to_compiled_form(form) c = self.form_to_compiled_form(form)
if os.path.exists(c): if os.path.exists(c):
os.remove(c) os.remove(c)
if os.path.exists(self.QRC): for x in (self.QRC, self.RCC):
os.remove(self.QRC) with suppress(FileNotFoundError):
os.remove(x)