I want to create a new command inherited from ExecCommand, but I hit the problem that:
is not a valid Python statement, exec is a reserved keyword.
So I change to this:
execcmd = imp.load_source("execcmd", r"C:\Users\bizoo\AppData\Roaming\Sublime Text 2\Packages\Default\exec.py")
Could you please rename the exec.py in the next build ?
And is there any drawback to create a command inheriting another command ?
I didn't find any sample in the default ST2 installation.
And in the same subject:
Could I use an init method in a command like:
def __init__(self, *args, **kwargs):
super(WebColorsCommand, self).__init__(*args, **kwargs)