Silence relative import warnings

This commit is contained in:
Alexander Todorov 2017-10-12 14:34:58 +03:00 committed by Brian C. Lane
parent 7f5b492198
commit b15df5a0af
7 changed files with 21 additions and 21 deletions

View File

@ -1,3 +1,3 @@
from .tagger import LoraxRHELTagger
from lorax_tito.tagger import LoraxRHELTagger
all = [LoraxRHELTagger]

View File

@ -33,21 +33,21 @@ import locale
from subprocess import CalledProcessError
import selinux
from .base import BaseLoraxClass, DataHolder
import output
from pylorax.base import BaseLoraxClass, DataHolder
import pylorax.output as output
import yum
import ltmpl
import pylorax.ltmpl as ltmpl
import imgutils
from sysutils import *
import pylorax.imgutils as imgutils
from pylorax.sysutils import *
from rpmUtils.arch import getBaseArch
from treebuilder import RuntimeBuilder, TreeBuilder
from buildstamp import BuildStamp
from treeinfo import TreeInfo
from discinfo import DiscInfo
from executils import runcmd, runcmd_output
from pylorax.treebuilder import RuntimeBuilder, TreeBuilder
from pylorax.buildstamp import BuildStamp
from pylorax.treeinfo import TreeInfo
from pylorax.discinfo import DiscInfo
from pylorax.executils import runcmd, runcmd_output
# get lorax version
try:

View File

@ -22,7 +22,7 @@
from abc import ABCMeta, abstractmethod
import sys
import output
import pylorax.output as output
class BaseLoraxClass(object):

View File

@ -28,9 +28,9 @@ from os.path import basename, isdir
from subprocess import CalledProcessError
import shutil
from sysutils import joinpaths, cpfile, mvfile, replace, remove
from yumhelper import * # Lorax*Callback classes
from base import DataHolder
from pylorax.sysutils import joinpaths, cpfile, mvfile, replace, remove
from pylorax.yumhelper import * # Lorax*Callback classes
from pylorax.base import DataHolder
from pylorax.executils import runcmd, runcmd_output
from pylorax.imgutils import mkcpio

View File

@ -22,7 +22,7 @@
import sys
import re
import decorators
import pylorax.decorators as decorators
# output levels

View File

@ -23,11 +23,11 @@ logger = logging.getLogger("pylorax.treebuilder")
import os, re
from os.path import basename
from sysutils import joinpaths, remove
from pylorax.sysutils import joinpaths, remove
from shutil import copytree, copy2
from base import DataHolder
from ltmpl import LoraxTemplateRunner
import imgutils
from pylorax.base import DataHolder
from pylorax.ltmpl import LoraxTemplateRunner
import pylorax.imgutils as imgutils
from pylorax.executils import runcmd, runcmd_output
templatemap = {

View File

@ -23,7 +23,7 @@ import logging
logger = logging.getLogger("pylorax.yumhelper")
import re
import yum, yum.callbacks, yum.rpmtrans
import output
import pylorax.output as output
__all__ = ['LoraxDownloadCallback', 'LoraxTransactionCallback',
'LoraxRpmCallback']