From f042a7392d16bd501c1b9e72521368280ac2164f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 31 Dec 2014 17:10:45 +0100 Subject: [PATCH] Patch for an Issue #1083 --- lib/parse/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 826314c70..3b33f8160 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -43,7 +43,7 @@ def cmdLineParser(): checkSystemEncoding() - _ = getUnicode(os.path.normpath(sys.argv[0]), encoding=sys.getfilesystemencoding()) + _ = getUnicode(os.path.basename(sys.argv[0]), encoding=sys.getfilesystemencoding()) usage = "%s%s [options]" % ("python " if not IS_WIN else "", \ "\"%s\"" % _ if " " in _ else _)