Closed mottosso closed 8 years ago
How about defining the GUI showing method here? Instead of just registering the GUI names, you register the command for showing the GUI.
set PYBLISH_REGISTERED_GUIS=pyblish_qml.show();pyblish_lite.show()
I'd rather try this approach first, until we run into problems.
Implemented in https://github.com/pyblish/pyblish-base/pull/297
Goal
Enable GUIs to be registered via the command-line, before Python.
Motivation
Registering via
pyblish.api.register_gui
works well, but considering that all other Pyblish configuration has an equivalent environment variable, this should exist for completeness and consistency.Implementation
Use native separator, from
os.pathsep
.Discussion
Should the variable instead be
PYBLISHGUIPATH
to align withPYBLISHPLUGINPATH
? Even though they are plural, and not paths?