Skip to content

Commit

Permalink
Update shebang line
Browse files Browse the repository at this point in the history
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
alanyee authored Jun 24, 2016
1 parent 70d6b7d commit b4e1659
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyguide.html
Original file line number Diff line number Diff line change
Expand Up @@ -1506,9 +1506,8 @@ <H3><A name="Shebang_Line" id="Shebang_Line">Shebang Line</A></H3>
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">

Expand Down

0 comments on commit b4e1659

Please sign in to comment.