Skip to content

Instantly share code, notes, and snippets.

@PaulFr

PaulFr/pawno.py Secret

Created December 19, 2011 01:55
Show Gist options
  • Save PaulFr/db9326855cda12f8d60e to your computer and use it in GitHub Desktop.
Save PaulFr/db9326855cda12f8d60e to your computer and use it in GitHub Desktop.
SublimeText2 Plugin for compile your PAWN scripts in ST2
import sublime, sublime_plugin
import os
class PawnoCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().run_command('pawno_compile')
class PawnoCompileCommand(sublime_plugin.WindowCommand):
def run(self):
filePath = self.window.active_view().file_name()
dirName = os.path.dirname(filePath);
os.system("C:\Users\Paul\Documents\Programmes\ServeurSAMP\pawno\pawncc.exe \""+filePath+"\" -D\""+dirName+"\" & pause");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment