From 0f0cddc23380aa947e980a6bfbcdfd3ecb9c0469 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Thu, 10 Feb 2011 17:23:17 +0100 Subject: Move some module imports to command runtime Move module imports of the fedora_cert, koji, and pyfedpkg modules to the actual command runtime. This gets rid of the requirement to have them (and their respective imported modules) installed at build time for generating the man page. --- src/fedpkg.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/fedpkg.py') diff --git a/src/fedpkg.py b/src/fedpkg.py index 91a7b5d..594be84 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -11,13 +11,10 @@ # the full text of the license. import argparse -import pyfedpkg -import fedora_cert import os import sys import getpass import logging -import koji import xmlrpclib import time import random @@ -1450,7 +1447,12 @@ if __name__ == '__main__': # to stderr. Normal operation will show anything INFO and above. # Quiet hides INFO, while Verbose exposes DEBUG. In all cases WARN or # higher are exposed (via stderr). + + import fedora_cert + import koji + import pyfedpkg log = pyfedpkg.log + if args.v: log.setLevel(logging.DEBUG) elif args.q: -- cgit