I'm not sure what the exact problem is, here are somethings you can try.
0. Recheck
Sublime text 2 just calls python -u $file
on both linux and windows. I would first double check this command works in a new cmd window.
1. Patch exec.py
On Windows systems new windows opened by the build process are hidden. This stops GUIs and maybe the python terminal from appearing.
You can disable this patching PackagesDefaultexec.py
by commenting out line 33:
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
2. Indirectly calling python
Another option is to modify Packages/Python/Python.sublime-build
so that it calls a bat file which then executes the python file. (this is what I am currently doing for .swf files)
3. Hardcoding Python path
Or, this is not ideal, you can try hard coding the python path into the build file like:
{
"cmd": ["C:\python27\python.exe", "-u", "$file"],
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python"
}
Hope one of the above works.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…