From cf6c3a84b52f73de44109af575bc34d3c4004845 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 12 Feb 2013 15:48:49 +0100 Subject: [PATCH] Adding support for symbolic linking sqlmap.py --- sqlmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlmap.py b/sqlmap.py index f89063729..a3b660e65 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -48,7 +48,7 @@ def modulePath(): using py2exe """ - return os.path.dirname(getUnicode(sys.executable if weAreFrozen() else __file__, sys.getfilesystemencoding())) + return os.path.dirname(os.path.realpath(getUnicode(sys.executable if weAreFrozen() else __file__, sys.getfilesystemencoding()))) def main(): """