This plugin will open a python module file/directory present on sys.path and any open folders in the window.
- Install
PythonOpenModulethrough Package Control - Set up the
sublcommand on your system (required to open new sublime windows for module directories)
If you are using a virtual environment in your project, then set the python_executable in your project settings. This overrides the sys.path that is searched by the plugin.
For example:
{
"settings": {
"python_executable": "/Users/glen/.virtualenvs/monty/bin/python"
}
}
After opening the input panel (by either "Open Python module" under the File menu, or a keyboard shortcut, type the package name (e.g. decimal or logging.config) into the input panel and press enter.