'Remove the app and its ext eggs from the pth file'

def remove(self, app):

    for path in self._entries.copy():
        module_path = os.path.join(app.abs_path, 'src')
        if path.startswith(module_path):
            self._entries.remove(module_path)
        rel_module_path = self._relpath(module_path)
        if path.startswith(rel_module_path):
            self._entries.remove(rel_module_path)
