-
-
Save PaulFr/db9326855cda12f8d60e to your computer and use it in GitHub Desktop.
SublimeText2 Plugin for compile your PAWN scripts in ST2
This file contains 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
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