def nukeScriptFolder(self, index = QModelIndex()):
index = self.dirmodel.index(QDir.currentPath())
fileInfo = QtCore.QFileInfo(self.dirmodel.fileInfo(index))
#print fileInfo.fileName()
#path = self.dirmodel.fileinfo(index).absoluteFilePath()
self.fileView.setRootIndex(filemodel.setRootPath(path))
当我执行上面的代码时,我收到以下错误
path_index = self.dirmodel.index(QDir.currentPath()).toString()
TypeError: 'sip.methoddescriptor' object is not callable