Hi all, we are porting all scripts since Python3 is now integrated, and need to open PyCharm/Notepad++ from within Maya to replace script editor.
MEL system() executes fine and doesn't halt maya, awaiting NP++ to close:
string $scriptsPath = `internalVar -userScriptDir`;
chdir $scriptsPath;
system("start C:/Program Files (x86)/Notepad++/notepad++.exe new_prog.mel")
Python version makes maya UI wait until NP++/Pycharm closes if using anything other than popen
import subprocess as subp
progpath=r'C:/Program Files (x86)/Notepad++/notepad++.exe'
launch=subp.Popen(progpath)
...
Since the external programs auto-save work, anything wrong with a launch.kill() shelf double-click (as long as I store & kill the proper PID of course)?
Anything else I should consider when using this method, or better ones would be appreciated. Thanks all!