issue #590: include nasty workaround for sys.modules junk

pull/595/head
David Wilson 6 years ago
parent 167d0eff32
commit 1a92995a24

@ -760,7 +760,12 @@ class NewStyleRunner(ScriptRunner):
for fullname, _, _ in self.module_map['custom']:
mitogen.core.import_module(fullname)
for fullname in self.module_map['builtin']:
try:
mitogen.core.import_module(fullname)
except ImportError:
# TODO: this is a huge hack to work around issue #590.
if fullname != 'ansible.module_utils.distro._distro':
raise
def _setup_excepthook(self):
"""

Loading…
Cancel
Save