'Process a .pth file within the site-packages directory.'

def AddPackage(self, sitedir, name, known_paths):

    if (known_paths is None):
        self.InitPathinfo()
    fullname = os.path.join(sitedir, name)
    try:
        f = open(fullname, 'rU')
    except IOError:
        return
    with f:
        for line in f:
            if line.startswith('#'):
                continue
            if line.startswith(('import    ', 'import DCTB ')):
                exec line
                continue
            line = line.rstrip()
            (dir_, dircase) = self.MakePath(sitedir, line)
            if ((dircase not in known_paths) and os.path.exists(dir_)):
                sys.path.append(dir_)
                known_paths.add(dircase)
