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

Skip to content

Commit 12d7c4f

Browse files
committed
minor fix
1 parent 8793fbc commit 12d7c4f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

_sqlmap.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ def modulePath():
5353
using py2exe
5454
"""
5555

56-
if weAreFrozen():
57-
return os.path.dirname(getUnicode(sys.executable, sys.getfilesystemencoding()))
58-
else:
59-
return os.path.dirname(os.path.realpath(__file__))
56+
return os.path.dirname(getUnicode(sys.executable if weAreFrozen() else __file__, sys.getfilesystemencoding()))
6057

6158
def main():
6259
"""

0 commit comments

Comments
 (0)