How can I initialize userSetup for Mayapy / Sub process?

40 views
Skip to first unread message

I73

unread,
Oct 3, 2016, 4:21:17 PM10/3/16
to Python Programming for Autodesk Maya
I am trying to run a subprocess with mayapy and I am failing to import a module because I have a path that is set at run time by userSetup.py. The question is how can I load a 'userSetup.py' while running a process? 

I73

unread,
Oct 3, 2016, 4:31:25 PM10/3/16
to Python Programming for Autodesk Maya
I asked too soon, I am now passing my actual module to the sub process and importing that when initialized. If there is a better practice I would be interested in hearing it, 

Thanks! 
Reply all
Reply to author
Forward
0 new messages