summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-12-11 20:44:42 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-12-11 20:44:42 (GMT)
commit90294d01be806a96f5196143e4d9ea10a6064965 (patch)
treebfd6c85ce5937a89dc141035aeafe2063429067c /Lib/distutils
parent77d8a4fc91aff2e4f25874fac2cb7c1915984cd1 (diff)
downloadcpython-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/distutils')
-rw-r--r--Lib/distutils/command/build_scripts.py2
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" %