Cosmetic fix (Kali shows ugly 'python ./sqlmap.py' in usage)

This commit is contained in:
Miroslav Stampar 2013-09-11 14:57:38 +02:00
parent 96ccdb7c83
commit 696fb6530e

View File

@ -6,6 +6,7 @@ See the file 'doc/COPYING' for copying permission
"""
import codecs
import os
import sys
from optparse import OptionError
@ -32,8 +33,10 @@ def cmdLineParser():
checkSystemEncoding()
_ = os.path.normpath(sys.argv[0])
usage = "%s%s [options]" % ("python " if not IS_WIN else "", \
"\"%s\"" % sys.argv[0] if " " in sys.argv[0] else sys.argv[0])
"\"%s\"" % _ if " " in _ else _)
parser = OptionParser(usage=usage)