From 24c616a42162793e6bdcda5544a2955a27c4821e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Feb 2009 04:47:25 +0000 Subject: Use lazyimport to avoid importing the checksum, locks, and util modules when portage is initially imported. svn path=/main/trunk/; revision=12680 --- pym/portage/process.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pym/portage/process.py') diff --git a/pym/portage/process.py b/pym/portage/process.py index 3bc6bd1a8..7c0fb342f 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -1,5 +1,5 @@ # portage.py -- core Portage functionality -# Copyright 1998-2004 Gentoo Foundation +# Copyright 1998-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -9,7 +9,11 @@ import atexit import signal import sys -from portage.util import dump_traceback +import portage +portage.proxy.lazyimport.lazyimport(globals(), + 'portage.util:dump_traceback', +) + from portage.const import BASH_BINARY, SANDBOX_BINARY, FAKEROOT_BINARY from portage.exception import CommandNotFound -- cgit v1.2.3-1-g7c22