diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-12-11 20:44:42 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-12-11 20:44:42 (GMT) |
commit | 90294d01be806a96f5196143e4d9ea10a6064965 (patch) | |
tree | bfd6c85ce5937a89dc141035aeafe2063429067c /Lib | |
parent | 77d8a4fc91aff2e4f25874fac2cb7c1915984cd1 (diff) | |
download | cpython-90294d01be806a96f5196143e4d9ea10a6064965.zip cpython-90294d01be806a96f5196143e4d9ea10a6064965.tar.gz cpython-90294d01be806a96f5196143e4d9ea10a6064965.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/build_scripts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index 7286bf1..bfa33c3 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py @@ -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" % |