hou.isUIAvailable function
Return whether or not the hou.ui module is available.
See also: hou.ui
Usage
isUIAvailable() → bool
The hou.ui module is not available in the command-line interpreter or in mplay, and this function helps you to write scripts that will run in Houdini and command-line and/or mplay.