I write plugin for sublime github.com/Zerstoren/sublime-console Main function - is open some py or php file on another terminal without sublime.
Console.py - check file name and send command to open file in _exec.py. _exec.py - get in arguments interpretator name and command for interpretator
But it dont work, i think this trouble in autoload plugin in sublime. When I open sublime, click F5 (binded key), plugin open new terminal window and close him (without execute code). After change in _exec.py, all work normal. After reboot sublime problem come back.