To start, I'm not the best python scripter out there, so I'm a bit stuck with a problem.
import subprocess
cmd = "maya.exe -file c:/temp/temp_mb_scene.mb"
subprocess.Popen(cmd)
If I run the code above in "VS Code" or "Windows PowerShell" it works fine. It opens Maya and the Maya scene. But if I try to run the code above in Houdini, Maya starts, but crashes right away. Maya also crashes if I leave out the Maya scene file. Does anyone have a clue how to solve this? Or how to open Maya in Houdini with Python?