# Which python?

**URL:** <https://forum.ansible.com/t/which-python/17371>\
**Category:** Ansible Project\
**Created:** [January 25, 2015, 10:44pm UTC](https://forum.ansible.com/t/which-python/17371 "2015-01-25T22:44:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Smith](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Roy\_Smith](https://forum.ansible.com/u/Roy_Smith)\
**Post date:** [January 25, 2015, 10:44pm UTC](https://forum.ansible.com/t/which-python/17371/1 "2015-01-25T22:44:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [January 26, 2015, 3:30pm UTC](https://forum.ansible.com/t/which-python/17371/2 "2015-01-26T15:30:37Z")

</div>

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.
