PikMike

Untitled

Mar 10th, 2016
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import sublime, sublime_plugin
  2. from subprocess import call
  3.  
  4.  
  5. class KillProgramCommand(sublime_plugin.TextCommand):
  6.     def run(self, edit):
  7.         name = self.view.window().active_view().file_name().split('/')[-1].split('.')[0]
  8.         call(["pkill", name])
Add Comment
Please, Sign In to add comment