diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/core.py | 2 |
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:] |