From b4e1659acd92e4470944928ce1bf27c0f01d6e12 Mon Sep 17 00:00:00 2001 From: Alan Yee Date: Fri, 24 Jun 2016 15:53:24 -0700 Subject: [PATCH] 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. --- pyguide.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyguide.html b/pyguide.html index 2f753ac..af48fa5 100644 --- a/pyguide.html +++ b/pyguide.html @@ -1506,9 +1506,8 @@ No: def foo(a, b=FLAGS.my_thing): # sys.argv has Most .py files do not need to start with a #! line. Start the main file of a program with - #!/usr/bin/python with an optional single digit - 2 or 3 suffix per - PEP-394. + #!/usr/bin/env python with an optional single digit + 2 or 3 suffix.