Functions
leo_fw.utils Namespace Reference

Functions

def is_tool (name)
 Check whether an executable exists on PATH. More...
 
def query_yes_no (question, default="yes")
 Ask a yes/no question via raw_input() and return their answer. More...
 
def write_flush (msg)
 Write a message to standard output and flush the buffer. More...
 

Function Documentation

◆ is_tool()

def leo_fw.utils.is_tool (   name)

Check whether an executable exists on PATH.

Parameters
nameName of the executable
Returns
True if executable exists, False otherwise

Definition at line 5 of file utils.py.

◆ query_yes_no()

def leo_fw.utils.query_yes_no (   question,
  default = "yes" 
)

Ask a yes/no question via raw_input() and return their answer.

Parameters
questionThe question that is presented to the user.
defaultThe presumed answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required of the user).
Returns
True if the answer is "yes", False otherwise

Definition at line 16 of file utils.py.

◆ write_flush()

def leo_fw.utils.write_flush (   msg)

Write a message to standard output and flush the buffer.

Definition at line 46 of file utils.py.



leo_fw
Author(s): Błażej Sowa
autogenerated on Mon Feb 28 2022 22:43:59