pythonplonesublimetextbuildout

Buildout-aware Python autocompletion for Sublime Text


Are there any tricks how one could make Sublime Text's Python autocompletion aware off all eggs from buildout's [eggs] section

E.g. grab the same sys.path as in Plone's generated bin/instance command and expose them to Sublime's auto-completion. You could easily auto-complete imports and stuff after this.

A preferable solution would be

Other solutions / ideas welcome.


Solution

  • Check http://pypi.python.org/pypi/corneti.recipes.codeintel/0.1.3

    This is even easier than Martin's solution, I use it together with omelette with a part like this in my development.cfg buildout

    [codeintel]
    recipe = corneti.recipes.codeintel
    eggs = ${buildout:eggs}
    extra-paths =
        ${omelette:location}