Skip to content

Instantly share code, notes, and snippets.

@gbishop
Created January 9, 2011 02:20
Show Gist options
  • Save gbishop/771352 to your computer and use it in GitHub Desktop.
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
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);
@gbishop
Copy link
Author

gbishop commented Jan 9, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment