def getRig(self):
        """ Method to pass back rig file """

        assert (
            self.fileName), "%s object does not have fileName attr. suggest renaming scene using cmds.file(rn='sceneName')" % self

        target = 'Rig'

        if self.team == gv.teamA:
            if re.search('body', self.fileName):
                target = 'Body' + target
            if re.search('head', self.fileName):
                target = 'Head' + target

        elif self.team == gv.teamD:
            #if re.search('Body', self.fileName): target = 'Body' + target
            if re.search('Body', self.fileNameParts[1]):
                target = 'Body' + target
            if re.search('Head', self.fileNameParts[1]):
                target = 'Head' + target
            if re.search('Environments', self.charType):
                target = 'Environment' + target

        elif self.team == gv.teamD:
            if re.search('mounts', self.charType):
                target = 'WVariant' + target

        self.folderKey = self.characterList.get(target % '%sFolderKey')
        self.nameKey = self.characterList.get('%sNameKey' % target)

        self.result = ''.join(self._trailConstruct())

        return self.result
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/common/fileIO/parser_schema.py/RigParse.getRig/swapped operands of `%`