Browse files

Update shebang line

This shebang line is more portable, as the user may not have python installed in /usr/local/bin/python. Also, according to PEP 486, the line makes the Python Launcher aware of virtual environments.
  • Loading branch information...
1 parent 70d6b7d commit b4e1659acd92e4470944928ce1bf27c0f01d6e12 @alanyee alanyee committed on GitHub Jun 24, 2016
Showing with 2 additions and 3 deletions.
  1. +2 −3 pyguide.html
View
5 pyguide.html
@@ -1506,9 +1506,8 @@ <H2 name="Python_Style_Rules" id="Python_Style_Rules">Python Style Rules</H2>
Most <code>.py</code> files do not need to start with a
<code>#!</code> line. Start the main file of a
program with
- <code>#!/usr/bin/python</code> with an optional single digit
- <code>2</code> or <code>3</code> suffix per
- <a href="https://www.python.org/dev/peps/pep-0394/">PEP-394</a>.
+ <code>#!/usr/bin/env python</code> with an optional single digit
+ <code>2</code> or <code>3</code> suffix.
</DIV>
<DIV class=""><DIV class="stylepoint_body" name="Shebang_Line__body" id="Shebang_Line__body" style="display: none">

0 comments on commit b4e1659

Please sign in to comment.