This is an example of using an Maya module to add PrEditor into Maya. This adds a PrEditor menu with a PrEditor action in Maya's menu bar letting you open PrEditor. It adds the excepthook so if a python exception is raised it will prompt the user to show PrEditor. PrEditor will show all python stdout/stderr output generated after the plugin is loaded.
Make sure to follow these setup instructions first to create the virtualenv.
Alternatively you can use myapy's pip to install the requirements, but a
separate virtualenv is recommended. This method should not require setting the
PREDITOR_SITE environment variable even if you use an editable install.
The preditor/dccs/maya directory is setup as a Maya Module. To load it in
maya add the full path to that directory to the MAYA_MODULE_PATH environment
variable. You can use ; on windows and : on linux to join multiple paths together.
You will need to enable auto load for the PrEditor_maya.py plugin.