def find_cmd(cmd):
 path = py3compat.which(cmd)
 if (path is None):
  raise FindCmdError(('command could not be found: %s' % cmd))
 return path

def find_cmd ( cmd ) : path = py3compat . which ( cmd ) if ( path is None ) : raise FindCmdError ( ( 'command could not be found: %s' % cmd ) ) return path
find absolute path to executable cmd in a cross platform manner .