def getEnv(self, sPrint=1, unformattedReturn=0):
        """
        NAME: getEnv

        SYNOPSIS
         prints all needed paths

        INPUTS	nothing

        RETURNS: none
        """
        scriptPaths = mel.getenv("MAYA_SCRIPT_PATH")
        plugInPaths = mel.getenv("MAYA_PLUG_IN_PATH")
        pythonPaths = mel.getenv("PYTHONPATH")
        iconPaths = mel.getenv("XBMLANGPATH")
        pathPaths = mel.getenv("PATH")
        sysPaths = sys.path
        envReturn = []
        splitString = ';'
        if os.name == 'posix':
            splitString = ':'

        allPythonPaths = pythonPaths.split(splitString)
        envReturn.append("PYTHONPATHs are:\n")
        for pythonPath in allPythonPaths:
            envReturn.append('%s\n' % pythonPath)

        allIconPaths = iconPaths.split(splitString)
        envReturn.append("\nXBMLANGPATH are:\n")
        for iconPath in allIconPaths:
            envReturn.append(iconPath % '%s\n')

        allPathPaths = pathPaths.split(splitString)
        envReturn.append("\nPATHs are:\n")
        for pathPath in allPathPaths:
            envReturn.append('%s\n' % pathPath)

        envReturn.append("\nsys.paths are:\n")
        for sysPath in sysPaths:
            envReturn.append('%s\n' % sysPath)

        allScriptPaths = scriptPaths.split(splitString)
        envReturn.append("\nMAYA_SCRIPT_PATHs are:\n")
        for scriptPath in allScriptPaths:
            envReturn.append('%s\n' % scriptPath)

        allPlugInPaths = plugInPaths.split(splitString)
        envReturn.append("\nMAYA_PLUG_IN_PATH are:\n")
        for plugInPath in allPlugInPaths:
            envReturn.append('%s\n' % plugInPath)

        if sPrint:
            print '\n'
            pArr = [pArr for pArr in envReturn if pArr.strip()]
            for p in pArr:
                if p.split('\n')[0]:
                    print p.split('\n')[0]
                elif p.split('\n')[1] != '':
                    print '\n'
                    print p.split('\n')[1]
        else:
            if unformattedReturn:
                pArr = [pArr for pArr in envReturn if pArr.strip()]
                uReturn = []
                for l in pArr:
                    if l != '':
                        uReturn.append(str(l.replace('\n', '')))
                return uReturn
            else:
                return envReturn
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/Maya.getEnv/swapped operands of `%`