Sublime Text2 text editor is extended via python scripts, using these modules:
import sublime, sublime_plugin
I’ve searched my computer and found sublime_plugin.py file.
But where is sublime.py?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that Sublime is provided dynamically when you call the plugin via the console.
Remember that an import doesn’t have to be a physical .py file, it can be a library or an in-memory representation.
I found a decent reference to the confusions often related to Import, it’s a little old now but I believe it’s still relevant:
http://effbot.org/zone/import-confusion.htm
Edit: Just to confirm that, I’ve checked and the Python2.6 runtime is embedded inside the executable for Sublime, and the Sublime module is defined inside there.