diff --git a/_sqlmap.py b/_sqlmap.py index 727d20bc0..7eb241d88 100755 --- a/_sqlmap.py +++ b/_sqlmap.py @@ -53,10 +53,7 @@ def modulePath(): using py2exe """ - if weAreFrozen(): - return os.path.dirname(getUnicode(sys.executable, sys.getfilesystemencoding())) - else: - return os.path.dirname(os.path.realpath(__file__)) + return os.path.dirname(getUnicode(sys.executable if weAreFrozen() else __file__, sys.getfilesystemencoding())) def main(): """