Logo Search packages:      
Sourcecode: namebench version File versions  Download package

def libnamebench::history_parser::HistoryParser::_AddRoamLocalWindowsPaths (   self,
  paths 
) [private]

Windows path munging: Add neutered and swapped paths for Local/roaming dirs.

Definition at line 203 of file history_parser.py.

00203                                             :
    """Windows path munging: Add neutered and swapped paths for Local/roaming dirs."""
    keywords = ('Local', 'Roaming')
    new_paths = list(paths)
    for path in paths:
      for keyword in keywords:
        if path[0] and keyword in path[0]:
          swapped_path = list(path)
          neutered_path = list(path)

          replacement = keywords[keywords.index(keyword)-1]

          swapped_path[0] = swapped_path[0].replace('\\%s' % keyword, '\\%s' % replacement)
          neutered_path[0] = neutered_path[0].replace('\\%s' % keyword, '')
          new_paths.extend([swapped_path, neutered_path])
    return new_paths


  def FindGlobPaths(self, paths):


Generated by  Doxygen 1.6.0   Back to index