pyblish_maya/lib.py
def _discover_gui():
    """Return the most desirable of the currently registered GUIs"""

    # Prefer last registered
    guis = reversed(pyblish.api.registered_guis())

    for gui in guis:
        try:
            gui = __import__(gui).show
        except (ImportError, AttributeError):
            continue
        else:
            return gui
def _discover_gui():
    # Prefer last registered
    guis = reversed(pyblish.api.registered_guis())

    for gui in guis:
        try:
            gui = __import__(gui).show
        except (ImportError, AttributeError):
            continue
        else:
            return gui
def _discover_gui ( ) : # Prefer last registered guis = reversed ( pyblish . api . registered_guis ( ) ) for gui in guis : try : gui = __import__ ( gui ) . show except ( ImportError , AttributeError ) : continue else : return gui
Return the most desirable of the currently registered GUIs
Return the most desirable of the currently registered GUIs