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!



-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/95da2ba1-f7c2-4626-b2c4-28c1b7945259n%40googlegroups.com.

Reply via email to