summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/core.py
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2002-11-07 16:41:38 (GMT)
committerThomas Heller <theller@ctypes.org>2002-11-07 16:41:38 (GMT)
commit8560bb816720a6b8069f9850d5203ed2425e9cbc (patch)
tree38f2b510f85458f5acca136c72546ffa5f5d899f /Lib/distutils/core.py
parent5b470e0a3aa0ad4da38b603d88b90a3018cfa131 (diff)
downloadcpython-8560bb816720a6b8069f9850d5203ed2425e9cbc.zip
cpython-8560bb816720a6b8069f9850d5203ed2425e9cbc.tar.gz
cpython-8560bb816720a6b8069f9850d5203ed2425e9cbc.tar.bz2
Fix a small bug when sys.argv[0] has an absolute path.
See http://mail.python.org/pipermail/distutils-sig/2002-November/003039.html
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r--Lib/distutils/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index d180eb8..001e74b 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -87,7 +87,7 @@ def setup (**attrs):
klass = Distribution
if not attrs.has_key('script_name'):
- attrs['script_name'] = sys.argv[0]
+ attrs['script_name'] = os.path.basename(sys.argv[0])
if not attrs.has_key('script_args'):
attrs['script_args'] = sys.argv[1:]