codewatchorg/sqlipy

Improve Python detection

Closed this issue · 2 comments

SQLmap uses Python 2, so distributions like Arch that default to Python 3 need to use python2.

On Windows, many users do not add Python to the path, but the location is available in the registry.

If Python 2 is not available, it would be useful to provide the user with a message.

I added registry checking logic to find the Python path in commit: 768fb34

Ok, I added a Python version check. If it doesn't return 2.7, then it will now auto set the Python path and will output an error in the console. The commit is: 15e8595