# # -*- coding: utf-8 -*- import maya.cmds as cmds def __register_sisidebar_startup(): from textwrap import dedent cmds.evalDeferred(dedent( """ import sisidebar.startup as s s.execute() """ )) if __name__ == '__main__': try: print("SiSideBar startup script has begun") __register_sisidebar_startup() print("SiSideBar startup script has finished") except Exception as e: print("SiSideBar startup script has ended with error") # avoidng the "call userSetup.py chain" accidentally stop, # all exception must be collapsed import traceback traceback.print_exc()