Sublime Forum • View topic - ImportError: No module named sublimeplugin:
one more question, did
CODE: SELECT ALL
view.runCommand('test1')
change? that's the way the API docs specify to run it but i'm getting an AttributeError.
...
The api docs cover good old Sublime 1.x... Sublime 2 introduces a few changes to how the api works and looks... Most prominently, Sublime 2 api conforms to PEP8, which means camelCase becomes camel_case. However, your best bet is to dir() whatever object you're interested in in the python console (CTRL ~) and try to find the new names. The old docs are still valid to a great extent, but new ones are badly needed.

Good to know.