fix #504 AttributeError: module 'gpodder' has no attribute 'log'

This commit is contained in:
Eric Le Lay 2018-07-30 19:34:54 +02:00
parent 8ebfa8b5c6
commit 1f79f32119

View file

@ -112,6 +112,9 @@ if os.path.exists(os.path.join(src_dir, 'gpodder', '__init__.py')):
sys.path.insert(0, src_dir)
import gpodder # isort:skip
from gpodder import common, core, download, log, model, my, opml, util, youtube # isort:skip
from gpodder.config import config_value_to_string # isort:skip
_ = gpodder.gettext
N_ = gpodder.ngettext
@ -125,10 +128,7 @@ have_ansi = sys.stdout.isatty() and not gpodder.ui.win32
interactive_console = sys.stdin.isatty() and sys.stdout.isatty()
is_single_command = False
gpodder.log.setup(verbose)
from gpodder import common, core, download, model, my, opml, util, youtube # isort:skip
from gpodder.config import config_value_to_string # isort:skip
log.setup(verbose)
def incolor(color_id, s):