Joe VanAndel wrote:

>
> When using 'distutils' (shipped with Python 2.1) I've found that my
> Python scripts installed with a first line of:
>
> #!/usr/bin/python2.1None
>
> This is caused by distutils trying to patch the first line of the python
> script to use the current interpreter.
This commit is contained in:
Marc-André Lemburg 2001-12-11 20:44:42 +00:00
parent 77d8a4fc91
commit 90294d01be
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class build_scripts (Command):
match = first_line_re.match(first_line)
if match:
adjust = 1
post_interp = match.group(1)
post_interp = match.group(1) or ''
if adjust:
self.announce("copying and adjusting %s -> %s" %