get_open_filename_input(prompt, ext='')[source]

get_open_filename_input prompts the user for a file name to open.

Note: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line

a simple text prompt is used. The UI uses the native window pop-up for file selection.

  • prompt (str) – Prompt to display.

  • ext (str) – Optional, file extension

>>> get_open_filename_input("filename:", "exe")
filename: foo.exe