avocado: Sanitize namespace

It is not necessary to internally import the libraries like
we've been doing so far.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 10fcbe3a
......@@ -12,16 +12,6 @@
# Copyright: Red Hat Inc. 2013-2014
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
import aexpect
import cli
import core
import job
import test
import version
import linux
import logging.config
DEFAULT_LOGGING = {
'version': 1,
......@@ -59,5 +49,5 @@ DEFAULT_LOGGING = {
}
}
logging.config.dictConfig(DEFAULT_LOGGING)
from logging import config
config.dictConfig(DEFAULT_LOGGING)
......@@ -11,5 +11,3 @@
#
# Copyright: Red Hat Inc. 2013-2014
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
import app
......@@ -11,18 +11,3 @@
#
# Copyright: Red Hat Inc. 2013-2014
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
import archive
import astring
import aurl
import build
import crypto
import download
import io
import memory
import network
import params
import process
import remote
import virt
import wait
......@@ -22,8 +22,8 @@ basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if os.path.isdir(os.path.join(basedir, 'avocado')):
sys.path.append(basedir)
import avocado
from avocado.cli.app import AvocadoApp
if __name__ == '__main__':
app = avocado.cli.app.AvocadoApp()
app = AvocadoApp()
sys.exit(app.run())
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册