--- module_common.py.orig 2017-04-14 14:10:25.496689174 +0200
+++ module_common.py 2017-04-29 19:58:40.326331537 +0200
@@ -30,6 +30,7 @@
import zipfile
import random
import re
+import sys
from io import BytesIO
from ansible.release import __version__, __author__
@@ -709,9 +710,9 @@
' Look at traceback for that process for debugging information.')
zipdata = to_text(zipdata, errors='surrogate_or_strict')
- shebang, interpreter = _get_shebang(u'/usr/bin/python', task_vars)
+ shebang, interpreter = _get_shebang(sys.executable, task_vars)
if shebang is None:
- shebang = u'#!/usr/bin/python'
+ shebang = u'#!{0}'.format(sys.executable)
# Enclose the parts of the interpreter in quotes because we're
# substituting it into the template as a Python string
--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.