Kaydet (Commit) 3a958503 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Leave #! lines featuring /usr/bin/env alone

üst b797f1f6
......@@ -10,8 +10,10 @@ import sys, os, re
from distutils.core import Command
from distutils.dep_util import newer
# check if Python is called on the first line with this expression
first_line_re = re.compile(r'^#!.*python(\s+.*)?')
# check if Python is called on the first line with this expression.
# This expression will leave lines using /usr/bin/env alone; presumably
# the script author knew what they were doing...)
first_line_re = re.compile(r'^#!(?!\s*/usr/bin/env\b).*python(\s+.*)?')
class build_scripts (Command):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment