Which python?

48 views
Skip to first unread message

Roy Smith

unread,
Jan 25, 2015, 5:44:19 PM1/25/15
to ansible...@googlegroups.com
I notice that all the ansible .py files with shebang lines run /usr/bin/python, except for one, which picks up whatever python is on your $PATH:

./utils/module_docs.py:#!/usr/bin/env python

Is this intentional?

--
Roy Smith
r...@panix.com

Brian Coca

unread,
Jan 26, 2015, 10:30:42 AM1/26/15
to ansible...@googlegroups.com
modules use /usr/bin/python to enable the ansible_python_interpreter
functionality, other files like bin/ansible, inventory scripts, etc
can use /usr/bin/env or are customized by the installation.


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages