I would like to know a reliable way to test if userSetup.py is being run in 
mayapy interactive in order to bypass UI tools when running mayapy 
interactively.  I guess maya.cmds.about(batch=True) works.

On Monday, August 20, 2012 10:32:57 PM UTC-4, Chadrik wrote:
>
> i'm not quite clear on what you want to do.  do you want to know if 
> userSetup.py is running in mayapy versus batch mode versus interactive? 
>  IIRC,  calling maya.standalone.initialize() in mayapy is what triggers 
> userSetup.py to get called, so just by virtue of it running you can know 
> that maya is in the *process* of being initialized.   
>
> -chad 
>
>
>
>
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to