#728 Request: New pythonpath contribution extension point


This patch adds a new extension point to pydev which will allow plugins to contribute custom PYTHONPATH entries to a python project. Whenever the project python path is requested, contributions will be asked to provide any additional path entries.

Use Case: I want to ship a Python library/sdk as an Eclipse/Pydev plugin. If my Eclipse Python library plugin is installed, I want the SDK to automatically available to pydev projects, just as though it were installed as a python system lib.

This change allows the plugin to contribute the SDK, which makes the SDK code known to the AST manager *and* adds the SDK directory to the runtime PYTHONPATH.


  • Eric Wittmann

    Eric Wittmann - 2008-06-08

    [PATCH] New pythonpath contribution extension point

  • Fabio Zadrozny

    Fabio Zadrozny - 2008-06-15
    • status: open --> closed-fixed
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-06-15

    Logged In: YES
    Originator: NO

    Ok, applied the patch with one change: the pathContributor is now path_contributor to conform to other extension points from pydev.

    Also, added the following note to the description:

    Important: these paths will only be available for new projects.

    For this to work in existing projects, the user must explicitly go to project > properties > PyDev - PYTHONPATH and click 'Force restore internal info' or re-configure the project or interpreter (which does restore the internal info too).


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks