def system_path(self):
        """
        Array containing system paths
        """

        # Get the PATH environmental variable
        path = os.environ.get('PATH')

        # If we're in Python <3 (less-than-three), we want this to be a unicode string
        # In python 3, all strings are unicode already, trying to decode gives AttributeError
        try:
            path = path.decode(sys.getfilesystemencoding())
        except __HOLE__:
            pass

        # Split and remove duplicates
        path = list(set(path.split(':')))

        # Some paths contain an extra separator, remove the empty path
        try:
            path.remove('')
        except ValueError:
            pass

        return path
dataset/ETHPy150Open markjones112358/dmenu-extended/dmenu_extended.py/dmenu.system_path