Allow shebang's which use versioned Python binaries. Fixes

bug #521526.
This commit is contained in:
Marc-André Lemburg 2002-02-28 09:16:21 +00:00
parent e309504f3e
commit bbea4717bc
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ from distutils.dep_util import newer
from distutils.util import convert_path
# check if Python is called on the first line with this expression
first_line_re = re.compile(r'^#!.*python(\s+.*)?$')
first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$')
class build_scripts (Command):