qt4.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:SoCFoundationFlow 作者: mattaw 项目源码 文件源码
def scan(self):
        """Parse the *.qrc* files"""
        if not has_xml:
            Logs.error('no xml support was found, the rcc dependencies will be incomplete!')
            return ([], [])

        parser = make_parser()
        curHandler = XMLHandler()
        parser.setContentHandler(curHandler)
        fi = open(self.inputs[0].abspath(), 'r')
        try:
            parser.parse(fi)
        finally:
            fi.close()

        nodes = []
        names = []
        root = self.inputs[0].parent
        for x in curHandler.files:
            nd = root.find_resource(x)
            if nd: nodes.append(nd)
            else: names.append(x)
        return (nodes, names)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号