find_executable function

(Shortest import: from brian2genn.device import find_executable)

brian2genn.device.find_executable(executable)[source]

Tries to find ‘executable’ in the path

Modified version of distutils.spawn.find_executable as this has stupid rules for extensions on Windows. Returns the complete filename or None if not found.