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... | |
| def leo_fw.utils.is_tool | ( | name | ) |
| def leo_fw.utils.query_yes_no | ( | question, | |
default = "yes" |
|||
| ) |
Ask a yes/no question via raw_input() and return their answer.
| question | The question that is presented to the user. |
| default | The 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). |