Skip to content

Instantly share code, notes, and snippets.

@jamietre
Last active December 18, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamietre/5859816 to your computer and use it in GitHub Desktop.
Save jamietre/5859816 to your computer and use it in GitHub Desktop.
RunBuild command to invoke a build system for Sublime Text 2 (windows), see http://www.bit-101.com/blog/?p=3439
import sublime
import sublime_plugin
class RunBuildCommand(sublime_plugin.WindowCommand):
def run(self, build_system):
self.window.run_command( "set_build_system", {"file": "Packages/User/"+build_system+".sublime-build" } )
self.window.run_command( "build" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment