Skip to content

Conversation

@ameily
Copy link

@ameily ameily commented Nov 12, 2015

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:

<root install> (C:\Python) \
    Python.exe
    Scripts\
        dispatcher.bat
        canari.bat

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant