mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix a small bug when sys.argv[0] has an absolute path.
See http://mail.python.org/pipermail/distutils-sig/2002-November/003039.html
This commit is contained in:
parent
5b470e0a3a
commit
8560bb8167
1 changed files with 1 additions and 1 deletions
|
@ -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:]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue