Misc Python 3 changes: execfile(), file(), reduce(), StandardError

This commit is contained in:
cclauss
2018-02-09 17:17:05 +01:00
parent 476dbe58c5
commit 260aec543e
6 changed files with 8 additions and 4 deletions

View File

@@ -25,4 +25,5 @@ import ansible
# Because of the way Ansible loads plugins, it's not possible to import
# ansible.plugins.callback.minimal when being loaded as the minimal plugin. Ugh.
execfile(os.path.join(os.path.dirname(ansible.__file__), 'plugins', 'callback', 'minimal.py'))
with open(os.path.join(os.path.dirname(ansible.__file__), 'plugins', 'callback', 'minimal.py')) as in_file:
exec(in_file.read())