From patchwork Mon Oct 5 18:25:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 51768 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n95IRTFH011809 for ; Mon, 5 Oct 2009 18:27:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754288AbZJES0L (ORCPT ); Mon, 5 Oct 2009 14:26:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754267AbZJES0L (ORCPT ); Mon, 5 Oct 2009 14:26:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6053 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754160AbZJES0L (ORCPT ); Mon, 5 Oct 2009 14:26:11 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n95IPfFP031534; Mon, 5 Oct 2009 14:25:41 -0400 Received: from localhost.localdomain (vpn-12-223.rdu.redhat.com [10.11.12.223]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n95IPcOM019299; Mon, 5 Oct 2009 14:25:39 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, jadmanski@google.com, Lucas Meneghel Rodrigues Subject: [PATCH] Fixing undefined variable reference error in setup_modules.py Date: Mon, 5 Oct 2009 15:25:38 -0300 Message-Id: <1254767138-11669-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/setup_modules.py b/client/setup_modules.py index dc255c4..6f2ea30 100644 --- a/client/setup_modules.py +++ b/client/setup_modules.py @@ -86,14 +86,6 @@ def _autotest_logging_handle_error(self, record): traceback.print_stack() sys.stderr.write('Future logging formatting exceptions disabled.\n') - if root_module_name == 'autotest_lib': - # Allow locally installed third party packages to be found - # before any that are installed on the system itself when not. - # running as a client. - # This is primarily for the benefit of frontend and tko so that they - # may use libraries other than those available as system packages. - sys.path.insert(0, os.path.join(base_path, "site-packages")) - def _monkeypatch_logging_handle_error(): # Hack out logging.py*