def _init_package( ): """Do the main initialization of this package""" import mrv.maya.mdb as mdb typ.targetModule = _thismodule # init metaclass with our module typ._nodesdict = globals() typ.initNodeHierarchy( ) typ.initTypeNameToMfnClsMap( ) typ.initWrappers( globals() ) # code generator needs an initialized nodes dict to work typ.codegen = mdb.PythonMFnCodeGenerator(typ._nodesdict) # initialize base module with our global namespace dict import base base._nodesdict = globals() # must come last as typ needs full initialization first import apipatch apipatch.init_applyPatches( ) # initialize modules init_modules( __file__, "mrv.maya.nt", self_module = _thismodule )
continue # END skip placeholders for handler in l.handlers: if isinstance(handler, logging.StreamHandler) and handler.stream is chan: handler.stream = fixedchan # END if stream needs fixing # END for each handler # END for each logger # END for each channel #} Initialization if 'init_done' not in locals(): init_done = False if not init_done: # assure we do not run several times init_system() init_path() init_standard_output() init_modules(__file__, "mrv.maya") init_singletons() # this serves as a reentrance check in case userSetup is importing us again init_done = True init_user_prefs()
if not isinstance(l, logging.Logger): continue # END skip placeholders for handler in l.handlers: if isinstance( handler, logging.StreamHandler) and handler.stream is chan: handler.stream = fixedchan # END if stream needs fixing # END for each handler # END for each logger # END for each channel #} Initialization if 'init_done' not in locals(): init_done = False if not init_done: # assure we do not run several times init_system() init_path() init_standard_output() init_modules(__file__, "mrv.maya") init_singletons() # this serves as a reentrance check in case userSetup is importing us again init_done = True init_user_prefs()