diff --git a/mylib/scripts/helpers.py b/mylib/scripts/helpers.py index d9f0a93..e5388a0 100644 --- a/mylib/scripts/helpers.py +++ b/mylib/scripts/helpers.py @@ -8,8 +8,6 @@ import logging import socket import sys -from mylib.email import EmailClient - log = logging.getLogger(__name__) @@ -213,6 +211,7 @@ def add_email_opts(parser, config=None): def init_email_client(options, **kwargs): """ Initialize email client from calling script options """ + from mylib.email import EmailClient # pylint: disable=import-outside-toplevel log.info('Initialize Email client') return EmailClient( smtp_host=options.email_smtp_host,