qibuild.interact – Interacting with the user

Small set of tools to interact with the user

qibuild.interact.ask_choice(choices, input_text)

Ask the user to choose from a list of choices

qibuild.interact.ask_program(message)

Ask the user to enter a path to a program.

Look for it in PATH. If not found, ask the user to enter the full path.

If still not found, give up ...

qibuild.interact.ask_string(question, default=None)

Ask the user to enter something.

Returns what the user entered

qibuild.interact.ask_yes_no(question, default=False)

Ask the user to answer by yes or no

qibuild.interact.get_editor()

Find the editor searching the environment, lastly ask the user.

Returns the editor.