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 d73144440c
commit 7d559fb1a7
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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)