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))
评论列表
文章目录