import mock for mod in ['maya', 'maya.cmds', 'maya.OpenMaya', 'maya.api.OpenMaya', 'pymel', 'pymel.core', 'maya.mel', 'pm']: sys.modules[mod] = mock.MagicMock()
I've never tried to mock Maya's modules. Is it a seg fault crash, or a python crash? I forget if Mock needs to import and inspect it. Does it import properly even?
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9916ae08-7d47-44f7-876f-feb3af7014b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.