Module Expr Str ImportFrom alias Import alias alias alias alias Import alias Import alias identifier Import alias ImportFrom alias alias alias alias alias Import alias identifier ImportFrom alias ImportFrom alias alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Import alias identifier handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Import alias Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BoolOpOr Call NameLoad AttributeLoad NameLoad attr Str CompareGtE Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args defaults vararg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return BoolOpOr CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Import alias Import alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Global identifier Assign NameStore NameLoad TryExcept body ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass If BoolOpAnd NameLoad Call NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body TryExcept body Expr Call AttributeLoad NameLoad attr Str Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str If CompareLt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise NameLoad BinOpAdd Call NameLoad NameLoad Str TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise If UnaryOpNot Call NameLoad body Expr Call AttributeLoad NameLoad attr Str If Call NameLoad keyword NameLoad body Import alias orelse Import alias Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body If BoolOpOr CompareIn Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore ListLoad Str Str IfExp NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Str Str Str IfExp NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad IfExp NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad TryExcept body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareNotEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body TryExcept body Assign NameStore Call NameLoad Str handlers ExceptHandler type NameLoad body Return NameLoad ExceptHandler type NameLoad body Import alias Expr Call AttributeLoad NameLoad attr Return NameLoad orelse For NameStore Call NameLoad NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args defaults body Global identifier Global identifier If BoolOpOr UnaryOpNot NameLoad NameLoad body Return Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Global identifier If BoolOpAnd NameLoad NameLoad body Assert CompareIn Str AttributeLoad NameLoad attr Str Import alias Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad orelse If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad decorator_list FunctionDef arguments args defaults body If CompareLtELt AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Import alias If CompareEq Call AttributeLoad NameLoad attr Str body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Import alias Import alias Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad Str Str body Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Import alias Expr Call AttributeLoad NameLoad attr TryExcept body Print Str handlers ExceptHandler type NameLoad body Pass Import alias Import alias Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body Pass If CompareIs NameLoad NameLoad body Assign NameStore Num If CompareIs NameLoad NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body If Call NameLoad body ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body If UnaryOpNot Call NameLoad keyword NameLoad body Import alias TryExcept body Import alias Import alias Assign AttributeStore NameLoad attr Call Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body With Call NameLoad NameLoad keyword Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad orelse Assign NameStore Str Assign NameStore Call NameLoad Str BinOpAdd AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Str orelse AugAssignAdd NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd Str NameLoad Return BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Dict Assign NameStore Dict Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad orelse For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Import alias Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Str NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad
N/A N/A 
Maya-related functions, which are useful to both `api` and `core`, including `mayaInit` which ensures
that maya is initialized in standalone mode.
 __future__ with_statement N/A os.path sys glob inspect N/A maya N/A maya.OpenMaya om N/A maya.utils pymel.util picklezip shellOutput subpackages refreshEnviron namedtuple N/A pymel.versions versions pymel.mayautils getUserPrefsDir pymel.versions shortName installName N/A plogging N/A _logger N/A N/A plogging getLogger __name__ N/A N/A N/A cPickle pickle N/A N/A N/A N/A N/A N/A _logger warning using pickle instead of cPickle: load performance will be affected N/A pickle N/A isInitializing False N/A finalizeEnabled True N/A _finalizeCalled False N/A pymelMayaPackage N/A N/A hasattr N/A maya utils shellLogHandler N/A N/A N/A versions current N/A versions v2011 _moduleJoin N/A N/A N/A args N/A N/A 
    Joins with the base pymel directory.
    :rtype: string
     N/A moduleDir N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A sys modules N/A __name__ __file__ N/A N/A N/A N/A os path realpath N/A N/A N/A os path join moduleDir args N/A mayaStartupHasRun N/A N/A N/A N/A N/A 
    Returns True if maya.app.startup has already finished, False otherwise.
     N/A N/A N/A maya.app.startup.gui N/A sys modules N/A maya.app.startup.batch N/A sys modules N/A mayaStartupHasStarted N/A N/A N/A N/A N/A 
    Returns True if maya.app.startup has begun running, False otherwise.

    It's possible that maya.app.startup is in the process of running (ie,
    in maya.app.startup.basic, calling executeUserSetup) - unlike mayaStartup,
    this will attempt to detect if this is the case.
     N/A N/A hasattr maya stringTable N/A setupFormatting N/A N/A N/A N/A N/A pprint N/A maya.utils myResultCallback N/A N/A obj N/A N/A N/A N/A N/A pprint pformat obj N/A N/A N/A N/A maya utils formatGuiResult myResultCallback N/A N/A N/A N/A maya utils formatGuiResult __module__ maya.utils N/A mayaInit N/A N/A forversion N/A None N/A N/A  Try to init Maya standalone module, use when running pymel from an external Python interpreter,
    it is possible to pass the desired Maya version number to define which Maya to initialize


    Part of the complexity of initializing maya in standalone mode is that maya does not populate os.environ when
    parsing Maya.env.  If we initialize normally, the env's are available via maya (via the shell), but not in python
    via os.environ.

    Note: the following example assumes that MAYA_SCRIPT_PATH is not set in your shell environment prior to launching
    python or mayapy.

    >>> import maya.standalone            #doctest: +SKIP
    >>> maya.standalone.initialize()      #doctest: +SKIP
    >>> import maya.mel as mm             #doctest: +SKIP
    >>> print mm.eval("getenv MAYA_SCRIPT_PATH")    #doctest: +SKIP
    /Network/Servers/sv-user.luma-pictures.com/luma .....
    >>> import os                         #doctest: +SKIP
    >>> 'MAYA_SCRIPT_PATH' in os.environ  #doctest: +SKIP
    False

    The solution lies in `refreshEnviron`, which copies the environment from the shell to os.environ after maya.standalone
    initializes.

    :rtype: bool
    :return: returns True if maya.cmds required initializing ( in other words, we are in a standalone python interpreter )

     N/A N/A N/A _logger debug startup.mayaInit: called N/A N/A setupFormatting N/A isInitializing N/A aboutExists False N/A N/A maya.cmds about N/A aboutExists True N/A N/A N/A ImportError N/A N/A N/A N/A aboutExists N/A mayaStartupHasStarted N/A N/A N/A N/A _logger debug startup.mayaInit: maya already started - exiting N/A isInitializing False N/A False N/A N/A N/A _logger debug startup.mayaInit: running N/A N/A N/A os environ N/A MAYA_SKIP_USERSETUP_PY on N/A N/A N/A aboutExists N/A N/A N/A N/A sys modules has_key maya.standalone N/A N/A N/A N/A N/A N/A _logger debug startup.mayaInit: running standalone.initialize N/A maya.standalone N/A N/A N/A N/A maya standalone initialize name python N/A N/A N/A N/A versions current N/A versions v2009 N/A N/A N/A refreshEnviron N/A N/A N/A ImportError N/A e N/A N/A e N/A N/A str e : pymel was unable to initialize maya.standalone N/A N/A maya.cmds about N/A N/A N/A Exception N/A N/A N/A N/A _logger error maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated) N/A N/A N/A N/A mayaStartupHasRun N/A N/A N/A N/A _logger debug running maya.app.startup N/A N/A about batch True N/A N/A maya.app.startup.batch N/A N/A maya.app.startup.gui N/A isInitializing True N/A True N/A initMEL N/A N/A N/A N/A N/A N/A N/A PYMEL_SKIP_MEL_INIT N/A os environ N/A N/A pymel_options get skip_mel_init False N/A N/A N/A N/A _logger info Skipping MEL initialization N/A N/A N/A N/A _logger debug initMEL N/A mayaVersion N/A N/A versions installName N/A prefsDir N/A getUserPrefsDir N/A N/A prefsDir None N/A N/A N/A N/A _logger error could not initialize user preferences: MAYA_APP_DIR not set N/A N/A N/A N/A N/A N/A os path isdir prefsDir N/A N/A N/A N/A _logger error N/A could not initialize user preferences: %s does not exist prefsDir N/A startup N/A createPreferencesOptVars.mel createGlobalOptVars.mel N/A prefsDir N/A N/A N/A os path join prefsDir userPrefs.mel None initialStartup.mel initialPlugins.mel namedCommandSetup.mel N/A prefsDir N/A N/A N/A os path join prefsDir userNamedCommands.mel None N/A prefsDir N/A N/A N/A os path join prefsDir pluginPrefs.mel None N/A N/A N/A f startup N/A N/A N/A N/A _logger debug N/A running: %s f N/A N/A f None N/A N/A N/A N/A N/A N/A os path isabs f N/A N/A N/A N/A os path exists f N/A N/A N/A N/A _logger warning N/A Maya startup file %s does not exist f N/A N/A N/A isinstance f unicode N/A N/A encoding unicode_escape N/A N/A encoding string_escape N/A maya.mel N/A N/A N/A N/A maya mel eval N/A source "%s" N/A N/A f encode encoding N/A N/A N/A Exception N/A e N/A N/A N/A N/A _logger error N/A could not perform Maya initialization sequence: failed on %s: %s N/A f e N/A N/A N/A res N/A N/A N/A maya mel eval whatIs "userSetup.mel" N/A N/A res Unknown N/A N/A N/A N/A N/A maya mel eval source "userSetup.mel" N/A N/A N/A RuntimeError N/A N/A N/A N/A N/A _logger debug done running mel files N/A initAE N/A N/A N/A N/A N/A N/A N/A pkg N/A __import__ AETemplates N/A N/A N/A ImportError N/A N/A False N/A N/A Exception N/A N/A traceback N/A N/A N/A traceback print_exc N/A False N/A N/A data N/A subpackages pkg N/A N/A N/A True N/A finalize N/A N/A N/A N/A N/A finalizeEnabled N/A _finalizeCalled N/A N/A N/A finalizeEnabled _finalizeCalled N/A N/A N/A N/A N/A _logger debug finalizing N/A _finalizeCalled True N/A isInitializing N/A N/A pymelMayaPackage isInitializing N/A N/A N/A maya.app.startup.basic N/A sys modules something is very wrong. maya.app.startup.basic should be imported by now N/A maya.app.startup.basic N/A N/A N/A N/A N/A N/A maya app startup basic executeUserSetup N/A state N/A N/A N/A om MGlobal mayaState N/A N/A state N/A N/A om MGlobal kLibraryApp N/A N/A N/A initMEL N/A N/A N/A state N/A N/A om MGlobal kInteractive N/A N/A N/A initAE N/A fixMayapy2011SegFault N/A N/A N/A N/A N/A N/A N/A versions v2011 N/A N/A versions current N/A versions v2013 N/A N/A platform N/A N/A N/A N/A platform system Linux N/A N/A N/A N/A N/A N/A om MGlobal mayaState N/A N/A om MGlobal kLibraryApp N/A N/A sys N/A atexit N/A _orig_exit N/A sys exit N/A N/A N/A hasattr sys _orig_exit N/A N/A N/A sys _orig_exit _orig_exit exit N/A N/A status N/A N/A N/A N/A sys _exit_status status N/A N/A _orig_exit status N/A N/A N/A sys exit exit hardExit N/A N/A N/A N/A N/A sys N/A N/A N/A atexit _run_exitfuncs N/A N/A N/A pymel: hard exiting to avoid mayapy crash... N/A N/A N/A Exception N/A N/A N/A os N/A sys N/A exitStatus N/A getattr sys _exit_status None N/A N/A exitStatus None N/A N/A last_value N/A getattr sys last_value None N/A N/A last_value None N/A N/A N/A isinstance last_value SystemExit N/A N/A N/A N/A exitStatus N/A N/A last_value args N/A 0 N/A N/A N/A Exception N/A N/A N/A N/A exitStatus None N/A N/A exitStatus 1 N/A N/A exitStatus None N/A N/A exitStatus 0 N/A N/A N/A os _exit exitStatus N/A N/A N/A N/A atexit register hardExit N/A encodeFix N/A N/A N/A N/A N/A N/A mayaInit N/A maya.cmds about N/A mayaEncode N/A about cs True N/A pyEncode N/A N/A sys getdefaultencoding N/A N/A mayaEncode pyEncode N/A N/A N/A N/A about b True N/A N/A maya.utils N/A N/A N/A maya.app.baseUI N/A codecs N/A N/A sys stdin N/A N/A N/A codecs getreader mayaEncode N/A N/A N/A N/A maya app baseUI StandardInput N/A N/A sys stdout N/A N/A N/A codecs getwriter mayaEncode N/A N/A N/A maya utils Output N/A N/A sys stderr N/A N/A N/A codecs getwriter mayaEncode N/A N/A N/A maya utils Output error 1 N/A N/A N/A ImportError N/A N/A N/A N/A _logger debug Unable to import maya.app.baseUI N/A _dump N/A N/A data filename protocol N/A -1 N/A N/A N/A open filename mode wb file N/A N/A N/A N/A pickle dump data file protocol N/A _load N/A N/A filename N/A N/A N/A N/A open filename mode rb file N/A N/A res N/A N/A pickle load file N/A res N/A PymelCache N/A object N/A N/A NAME N/A DESC N/A COMPRESSED True N/A USE_VERSION True read N/A N/A self N/A N/A N/A newPath N/A N/A self path N/A N/A self COMPRESSED N/A N/A func N/A picklezip load N/A N/A func _load N/A N/A N/A _logger debug N/A N/A self _actionMessage Loading from newPath N/A N/A N/A N/A func newPath N/A N/A N/A Exception N/A e N/A N/A N/A N/A self _errorMsg read from newPath e N/A write N/A N/A self data N/A N/A N/A newPath N/A N/A self path N/A N/A self COMPRESSED N/A N/A func N/A picklezip dump N/A N/A func _dump N/A N/A N/A _logger info N/A N/A self _actionMessage Saving to newPath N/A N/A N/A N/A func data newPath 2 N/A N/A N/A Exception N/A e N/A N/A N/A N/A self _errorMsg write to newPath e N/A path N/A N/A self N/A N/A N/A N/A self USE_VERSION N/A N/A N/A hasattr self version N/A N/A short_version N/A str N/A self version N/A N/A short_version N/A shortName N/A N/A short_version N/A newPath N/A _moduleJoin cache N/A N/A self NAME short_version N/A N/A self COMPRESSED N/A N/A newPath .zip N/A N/A newPath .bin N/A newPath N/A _actionMessage N/A N/A cls action direction location N/A N/A N/A _actionMessage('eat', 'at', 'Joes') =>
            "eat cls.DESC at 'Joes'"
         N/A description N/A cls DESC N/A description N/A N/A description N/A description N/A N/A %s%s %s %r N/A action description direction location N/A classmethod _errorMsg N/A N/A cls action direction path error N/A N/A N/A _errorMessage('eat', 'at', 'Joes') =>
            'Unable to eat cls.DESC at Joes: error.msg'
         N/A actionMsg N/A N/A cls _actionMessage action direction path N/A N/A N/A _logger error N/A Unable to %s: %s N/A actionMsg error N/A traceback N/A N/A N/A _logger debug N/A N/A traceback format_exc N/A classmethod N/A SubItemCache N/A PymelCache N/A N/A Used to store various maya information

    ie, api / cmd data parsed from docs

    To implement, create a subclass, which overrides at least the NAME, DESC,
    and _CACHE_NAMES attributes, and implements the rebuild method.

    Then to access data, you should initialize an instance, then call build;
    build will load the data from the cache file if possible, or call rebuild
    to build the data from scratch if not.  If the data had to be rebuilt,
    a new file cache will be saved.

    The data may then be accessed through attributes on the instance, with
    the names given in _CACHE_NAMES.

    >>> class NodeCache(SubItemCache):
    ...     NAME = 'mayaNodes'
    ...     DESC = 'the maya nodes cache'
    ...     COMPRESSED = False
    ...     _CACHE_NAMES = ['nodeTypes']
    ...     def rebuild(self):
    ...         import maya.cmds
    ...         self.nodeTypes = maya.cmds.allNodeTypes(includeAbstract=True)
    >>> cacheInst = NodeCache()
    >>> cacheInst.build()
    >>> 'polyCube' in cacheInst.nodeTypes
    True
     N/A _CACHE_NAMES N/A N/A ITEM_TYPES N/A N/A STORAGE_TYPES N/A N/A DEFAULT_TYPE dict __init__ N/A N/A self N/A N/A N/A name N/A self _CACHE_NAMES N/A N/A N/A N/A self initVal name N/A cacheNames N/A N/A self N/A N/A N/A N/A tuple N/A self _CACHE_NAMES N/A initVal N/A N/A self name N/A N/A N/A itemType N/A N/A self itemType name N/A N/A itemType None N/A N/A val None N/A N/A val N/A itemType N/A N/A setattr self name val N/A itemType N/A N/A self name N/A N/A N/A N/A N/A N/A self ITEM_TYPES get name N/A self DEFAULT_TYPE N/A build N/A N/A self N/A N/A N/A 
        Used to rebuild cache, either by loading from a cache file, or rebuilding from scratch.
         N/A data N/A N/A self load N/A N/A data None N/A N/A N/A N/A self rebuild N/A N/A N/A self save N/A rebuild N/A N/A self N/A N/A N/A Rebuild cache from scratch

        Unlike 'build', this does not attempt to load a cache file, but always
        rebuilds it by parsing the docs, etc.
         N/A N/A update N/A N/A self obj cacheNames N/A None N/A N/A Update all the various data from the given object, which should
        either be a dictionary, a list or tuple with the right number of items,
        or an object with the caches stored in attributes on it.
         N/A N/A cacheNames None N/A N/A cacheNames N/A N/A self cacheNames N/A N/A isinstance obj dict N/A N/A N/A key val N/A N/A obj iteritems N/A N/A N/A setattr self key val N/A N/A N/A isinstance obj N/A list tuple N/A N/A N/A N/A len obj N/A len cacheNames N/A N/A N/A ValueError N/A length of update object (%d) did not match length of cache names (%d) N/A N/A len obj N/A len cacheNames N/A N/A newVal name N/A zip obj cacheNames N/A N/A N/A setattr self name newVal N/A N/A cacheName cacheNames N/A N/A N/A setattr self cacheName N/A getattr obj cacheName N/A load N/A N/A self N/A N/A N/A Attempts to load the data from the cache on file.

        If it succeeds, it will update itself, and return the loaded items;
        if it fails, it will return None
         N/A data N/A N/A self read N/A N/A data None N/A N/A data N/A list data N/A N/A self STORAGE_TYPES N/A N/A name N/A self STORAGE_TYPES N/A N/A index N/A N/A N/A self _CACHE_NAMES index name N/A val N/A data N/A index N/A val N/A N/A N/A self itemType name val N/A N/A data N/A index val N/A data N/A tuple data N/A N/A N/A self update data cacheNames N/A self _CACHE_NAMES N/A data N/A save N/A N/A self obj N/A None N/A N/A Saves the cache

        Will optionally update the caches from the given object (which may be
        a dictionary, or an object with the caches stored in attributes on it)
        before saving
         N/A N/A obj None N/A N/A N/A N/A self update obj N/A data N/A N/A self contents N/A N/A self STORAGE_TYPES N/A N/A newData N/A N/A N/A name val N/A zip N/A self _CACHE_NAMES data N/A N/A N/A name N/A self STORAGE_TYPES N/A N/A val N/A N/A N/A self STORAGE_TYPES N/A name val N/A N/A N/A newData append val N/A data N/A tuple newData N/A N/A N/A self write data N/A contents N/A N/A self N/A N/A N/A N/A tuple N/A N/A getattr self x N/A x N/A N/A self cacheNames N/A N/A getConfigFile N/A N/A N/A N/A N/A N/A N/A plogging getConfigFile N/A parsePymelConfig N/A N/A N/A N/A N/A ConfigParser N/A types N/A skip_mel_init check_attr_before_lock boolean boolean N/A defaults N/A skip_mel_init check_attr_before_lock off off N/A config N/A N/A ConfigParser ConfigParser defaults N/A N/A N/A config read N/A getConfigFile N/A d N/A N/A option N/A N/A config options pymel N/A N/A getter N/A getattr config N/A get N/A N/A types get option N/A N/A d N/A option N/A getter pymel option N/A d N/A N/A pymel_options N/A parsePymelConfig