parameters: ()
return_statement: return known_paths
docstring: Remove duplicate entries from sys.path along with making them
      absolute
docstring_summary: Remove duplicate entries from sys.path along with making them
      absolute
docstring_tokens: Remove duplicate entries from sys . path along with making them absolute
function: def removeduppaths():
      """ Remove duplicate entries from sys.path along with making them
      absolute"""
      # This ensures that the initial path provided by the interpreter contains
      # only absolute pathnames, even if we're running from the build directory.
      L = []
      known_paths = set()
      for dir in sys.path:
          # Filter out duplicate paths (on case-insensitive file systems also
          # if they only differ in case); turn relative paths into absolute
          # paths.
          dir, dircase = makepath(dir)
          if dircase not in known_paths:
              L.append(dir)
              known_paths.add(dircase)
      sys.path[:] = L
      return known_paths
function_tokens: def removeduppaths ( ) : # This ensures that the initial path provided by the interpreter contains # only absolute pathnames, even if we're running from the build directory. L = [ ] known_paths = set ( ) for dir in sys . path : # Filter out duplicate paths (on case-insensitive file systems also # if they only differ in case); turn relative paths into absolute # paths. dir , dircase = makepath ( dir ) if dircase not in known_paths : L . append ( dir ) known_paths . add ( dircase ) sys . path [ : ] = L return known_paths