code: def _path_is_executable_others(path):
      '''
      Check every part of path for executable permission
      '''
      prevpath = None
      while path and path != prevpath:
          try:
              if not os.stat(path).st_mode & stat.S_IXOTH:
                  return False
          except OSError:
              return False
          prevpath = path
          path, _ = os.path.split(path)
      return Truf _path_is_executable_others(path):
      '''
      Check every part of path for executable permission
      '''
      prevpath = None
      while path and path != prevpath:
          try:
              if not os.stat(path).st_mode & stat.S_IXOTH:
                  return False
          except OSError:
              return False
          prevpath = path
          path, _ = os.path.split(path)
      return True
docs: Check every part of path for executable permission