Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f042a73

Browse files
committed
Patch for an Issue #1083
1 parent 2985050 commit f042a73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def cmdLineParser():
4343

4444
checkSystemEncoding()
4545

46-
_ = getUnicode(os.path.normpath(sys.argv[0]), encoding=sys.getfilesystemencoding())
46+
_ = getUnicode(os.path.basename(sys.argv[0]), encoding=sys.getfilesystemencoding())
4747

4848
usage = "%s%s [options]" % ("python " if not IS_WIN else "", \
4949
"\"%s\"" % _ if " " in _ else _)

0 commit comments

Comments
 (0)