Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ccdb7 commit 696fb65Copy full SHA for 696fb65
1 file changed
lib/parse/cmdline.py
@@ -6,6 +6,7 @@
6
"""
7
8
import codecs
9
+import os
10
import sys
11
12
from optparse import OptionError
@@ -32,8 +33,10 @@ def cmdLineParser():
32
33
34
checkSystemEncoding()
35
36
+ _ = os.path.normpath(sys.argv[0])
37
+
38
usage = "%s%s [options]" % ("python " if not IS_WIN else "", \
- "\"%s\"" % sys.argv[0] if " " in sys.argv[0] else sys.argv[0])
39
+ "\"%s\"" % _ if " " in _ else _)
40
41
parser = OptionParser(usage=usage)
42
0 commit comments