parameters: (command_or_path)
docstring: Returns the absolute path of an executable.
docstring_summary: Returns the absolute path of an executable.
docstring_tokens: Returns the absolute path of an executable .
function: def resolve_executable_path(command_or_path):
      """Returns the absolute path of an executable."""
      if command_or_path and command_or_path.strip():
          executable_path = shutil.which(command_or_path)
          if executable_path is None:
              raise BuildError("Failed to resolve executable path for "
                               "'{}'.".format(command_or_path))
          return os.path.abspath(executable_path)
      else:
          return None
function_tokens: def resolve_executable_path ( command_or_path ) : if command_or_path and command_or_path . strip ( ) : executable_path = shutil . which ( command_or_path ) if executable_path is None : raise BuildError ( "Failed to resolve executable path for " "'{}'." . format ( command_or_path ) ) return os . path . abspath ( executable_path ) else : return None