def _init_pathinfo():
 d = set()
 for dir in sys.path:
  try:
   if os.path.isdir(dir):
    (dir, dircase) = makepath(dir)
    d.add(dircase)
  except TypeError:
   continue
 return d

def _init_pathinfo ( ) : d = set ( ) for dir in sys . path : try : if os . path . isdir ( dir ) : ( dir , dircase ) = makepath ( dir ) d . add ( dircase ) except TypeError : continue return d
return a set containing all existing directory entries from sys_path .