public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9
import sublime, sublime_plugin
 
class TestCommand(sublime_plugin.ApplicationCommand):
def __init__(self):
super(TestCommand, self).__init__()
#do your stuf here
def run(self, edit):
pass

I have this error, quite after adding folder with plugin to Packages folder:

Reloading plugin D:\Dropbox\programs\ST2\Data\Packages\STsync\stsync.py
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 103, in create_application_commands
    cmds.append(class_())
TypeError: __init__() takes no arguments (1 given)

It is alive. You are a magician! Thank you for your patience and spent time.

import sublime, sublime_plugin
from subprocess import call


class TestCommand(sublime_plugin.ApplicationCommand):
    def __init__(self):
        super(TestCommand, self).__init__()
        #do your stuf here
        # call(["node", "app.js", "../User/"], Shell=true)
        call(["ping", "192.168.1.1"])

    def run(self, edit):
        pass

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.