There's an 'import pyanaconda.storage.storage_log' shortly before the call to setupLoggingFromOpts, around line 500, presumably for this purpose. All that's needed is to qualify pyanaconda.storage.storage_log.logger inside setupLoggingFromOpts. Your approach works, too, but then that import statement from __main__ is unneeded. Dave On Wed, 2010-09-29 at 17:10 -0400, Chris Lumens wrote: > --- > anaconda | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/anaconda b/anaconda > index 00c8322..66bcb00 100755 > --- a/anaconda > +++ b/anaconda > @@ -266,6 +266,8 @@ def setupEnvironment(): > os.environ["PIXMAPPATH"] = "/tmp/updates/pixmaps/:/tmp/updates/:/tmp/product/pixmaps/:/tmp/product/:pixmaps/:/usr/share/anaconda/pixmaps/:/usr/share/pixmaps/:/usr/share/anaconda/:/usr/share/python-meh/:/usr/share/icons/Fedora/48x48/apps/" > > def setupLoggingFromOpts(opts): > + from pyanaconda import storage > + > if opts.loglevel and anaconda_log.logLevelMap.has_key(opts.loglevel): > level = anaconda_log.logLevelMap[opts.loglevel] > anaconda_log.logger.tty_loglevel = level _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list