Created
January 9, 2011 02:20
-
-
Save gbishop/771352 to your computer and use it in GitHub Desktop.
Komodo Edit macro to Save and Run a Python program, killing the previous instance if necessary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (komodo.view) { komodo.view.setFocus() }; | |
komodo.doCommand('cmd_save') | |
ko.run.output.kill(-1); | |
setTimeout(function(){ | |
ko.run.runEncodedCommand(window, '%(python) -i \"%F\" {\'cwd\': u\'%D\'}'); | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote about this at http://www.cs.unc.edu/~gb/~gb/blog/2011/01/08/komodo-edit-run-command/