def pathdirs():
 dirs = []
 normdirs = []
 for dir in sys.path:
  dir = os.path.abspath((dir or '.'))
  normdir = os.path.normcase(dir)
  if ((normdir not in normdirs) and os.path.isdir(dir)):
   dirs.append(dir)
   normdirs.append(normdir)
 return dirs

def pathdirs ( ) : dirs = [ ] normdirs = [ ] for dir in sys . path : dir = os . path . abspath ( ( dir or '.' ) ) normdir = os . path . normcase ( dir ) if ( ( normdir not in normdirs ) and os . path . isdir ( dir ) ) : dirs . append ( dir ) normdirs . append ( normdir ) return dirs
convert sys .