pathlist = [
            os.path.expanduser(x.rstrip(os.sep)) for x in path.split(os.pathsep)