The fix addresses the situation where Python 2.7 is not located in the Windows PATH environmental variable. In my situation I have Python 3.3 located in PATH and, therefore, Maltego transforms fail to execute stating that the canari package is not installed.
The fix works by first checking if the script's parent directory contains the python.exe executable and, if it does, uses this executable rather than the one located in PATH.
For Windows installations, the Python directory structure is:
This way, canari.bat will check if <root install>\Python.exe exists, and if it does, execute that version of Python. If this executable doesn't exist, the Python version located in the PATH is executed.
The fix addresses the situation where Python 2.7 is not located in the Windows
PATH
environmental variable. In my situation I have Python 3.3 located inPATH
and, therefore, Maltego transforms fail to execute stating that thecanari
package is not installed.The fix works by first checking if the script's parent directory contains the
python.exe
executable and, if it does, uses this executable rather than the one located inPATH
.For Windows installations, the Python directory structure is:
This way,
canari.bat
will check if<root install>\Python.exe
exists, and if it does, execute that version of Python. If this executable doesn't exist, the Python version located in thePATH
is executed.