importManager.py 文件源码

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

项目:nukeScripts 作者: mlavoy 项目源码 文件源码
def compareFiles(self,*args):
        color=QtGui.QColor(255,0,0)
        it = QtGui.QTreeWidgetItemIterator(self.publishesTree)
        for i in it:
            if i.value().childCount()==0:
                serverPath=self.convertTreePathToServerPath(self.getTreePathFromItem(i.value()))
                localPath=serverPath.replace("P:",self.localDrive)
                frames=[]
                if os.path.exists(localPath):
                    for file in os.listdir(localPath+'/exr'):
                        if os.path.isfile(localPath+'/exr/'+file):
                            print file
                            frames.append(str(int(file.split(".")[1])))
                    frames.sort()
                    i.value().setForeground(0,color)
                    i.value().setText(2,",".join(frames))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号