Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def rigToolsModulePath():
- """
- Returns the Main path to the RigTools root module folder
- """
- return os.path.join( os.path.dirname(os.path.dirname(__file__)), '' )
- def start():
- """
- This method acts as the entry point to the RigTools setup
- :return:
- """
- # add current module path to the sys.path
- modulePath = os.path.join( rigToolsModulePath() )
- sys.path.append(modulePath)
- # import setup script at lowest priority in order to allow Maya to build
- # the main window (MayaWindow) first along with the menubar (gMainFileMenu)
- # evalDeferred() scope runs in Maya's own global scope, so imports
- # must be re-defined here (sys.path scope is not taken into account)
- mc.evalDeferred( 'import rigTools.setup.setup as setup; setup.start()'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement