So im trying to setup some shell scripts at work on linux that runs
maya with pymel. So far pymel is being very cooperative indeed and its
a pleasure to work with. However when its all said and done and we
should exit maya (mayapy) it always crashes without fail.

When writing the current maya version is 2011.5 (64bit), pymel
version...im not too sure, what ever shipped with it.

Example command

mayapy -c "import pymel.core; import sys; sys.exit(0)"

This will crash without fail on our systems.

I did some investigating and tracked it down to the sourcing of the
initialPlugins.mel. script and in particular the mel statement "catch
(`dynamicLoad libRenderUISlice.so`)". If this statement is omitted
then mayapy will no longer crash when exiting if initialized by pymel.

What functionality does pymel gain from sourcing this mel script? Does
it actually need to do it?

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to