def METHOD_NAME(self, src):
    dst = os.path.join(
        os.path.dirname(os.path.dirname(src)),
        os.path.splitext(os.path.basename(src))[0]
    ) + '_rc.py'
    cmd = (
        sys.executable, '-m', 'PyQt5.pyrcc_main',
        src, '-o', dst,
    )
    if self.verbose:
        print('generating', dst)
    subprocess.check_call(cmd)