Sorry, I wasn't clear. On OS X, it always uses the 2.6 version of the system python, even if you have a newer version (you can see which versions of Python you have in /System/Library/Frameworks/Python.framework/Versions/ and "Current" is probably a symlink to 2.7). It's just a limitation of Sublime.
The "call" method just runs the command, it does not provide any output. You will need to use the Popen object to retrieve the output from the command. For example:
- Code: Select all
output = subprocess.Popen(['ls', '-l'], stdout=subprocess.PIPE).communicate()
You can check out the older Python docs here: http://docs.python.org/release/2.6.8/li ... ocess.html