parameters: (path_var, directory)
return_statement: return os.pathsep.join(pathlist)
docstring: Remove the specified directory from path_var, a string representing
      PATH
docstring_summary: Remove the specified directory from path_var, a string representing
      PATH
docstring_tokens: Remove the specified directory from path_var a string representing PATH
function: def remove_dir_from_path(path_var, directory):
      """Remove the specified directory from path_var, a string representing
      PATH"""
      pathlist = path_var.split(os.pathsep)
      norm_directory = os.path.normpath(os.path.normcase(directory))
      pathlist = filter(lambda x: os.path.normpath(
          os.path.normcase(x)) != norm_directory, pathlist)
      return os.pathsep.join(pathlist)
function_tokens: def remove_dir_from_path ( path_var , directory ) : pathlist = path_var . split ( os . pathsep ) norm_directory = os . path . normpath ( os . path . normcase ( directory ) ) pathlist = filter ( lambda x : os . path . normpath ( os . path . normcase ( x ) ) != norm_directory , pathlist ) return os . pathsep . join ( pathlist )