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?
On Thu, 30 Jul 2015 12:05 AM johan Borgström <[email protected]> wrote: > Hi, > > I am using Sphinx to create documentation and I get import errors when > building. I use Mock in the conf.py file: > > import mock > > for mod in ['maya', 'maya.cmds', 'maya.OpenMaya', 'maya.api.OpenMaya', > 'pymel', 'pymel.core', 'maya.mel', 'pm']: > sys.modules[mod] = mock.MagicMock() > > > It works fine for most of the modules but when I add maya.OpenMayaUI to > the list the build process crashes. I am really new to Sphinx, so any tips > or ideas are welcomed! > > Best, > Johan > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/9916ae08-7d47-44f7-876f-feb3af7014b0%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/9916ae08-7d47-44f7-876f-feb3af7014b0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2q18hVyKhEYcy4p%2BqTGTovSqN85X_d2DYDGgY1-nWktg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
