I am running Maya from Python with subprocess to set the necessary environment.
If I add a PYRHONPATH to my custom package ( os.environ[‘PYTHONPATH’] =‘my/path’), Maya prints error:
cannot find procedure MTsettogglemenuitem
and does not launch.
Can you help me to troubleshoot the issue? I have no clue where is the problem (without this path maya launches normally). Also, Maya 2016 launches normally with this path.
The only option I can think of is that I have some modules/packages names that conflict with Maya. E.g. I have core, setting, database and other names…