def get_checker_executable(name):
 if programs.is_program_installed(name):
  return [name]
 else:
  path1 = programs.python_script_exists(package=None, module=(name + '_script'))
  path2 = programs.python_script_exists(package=None, module=name)
  if (path1 is not None):
   return [sys.executable, path1]
  elif (path2 is not None):
   return [sys.executable, path2]

def get_checker_executable ( name ) : if programs . is_program_installed ( name ) : return [ name ] else : path1 = programs . python_script_exists ( package = None , module = ( name + '_script' ) ) path2 = programs . python_script_exists ( package = None , module = name ) if ( path1 is not None ) : return [ sys . executable , path1 ] elif ( path2 is not None ) : return [ sys . executable , path2 ]
return checker executable in the form of a list of arguments for subprocess .