From b1d13d1e7d5bc055321610f91e7315c95aeb8de4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 6 Feb 2015 09:05:41 +0100 Subject: [PATCH] Patch for an Issue #1158 --- sqlmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlmap.py b/sqlmap.py index c01bab3ad..81b3e756e 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -62,7 +62,7 @@ def modulePath(): except NameError: _ = inspect.getsourcefile(modulePath) - return os.path.dirname(os.path.realpath(getUnicode(_, sys.getfilesystemencoding()))) + return getUnicode(os.path.dirname(os.path.realpath(_)), sys.getfilesystemencoding()) def main(): """