Attention

This document was written for an old version of Plone, Plone 3, and was last updated 1564 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Setting up PYTHONPATH in Eclipse project

by Mikko Ohtamaa last modified Feb 04, 2009 03:08 AM
PyDev uses PYTHONPATH to find Python source files in autocompletion and debugging. You need to set up paths correctly to get everything out from the IDE.

PYTHONPATHs are project specific in Eclipse and they affect code completion and launching.

.. image:: /documentation/tutorial/developing-plone-with-eclipse/snapshot6.png
:width: 320
:height: 250
:target: /documentation/tutorial/developing-plone-with-eclipse/snapshot6.png

* Right click the your development project -> *Properties*

* Go to section PyDev - PYTHONPATH.

* Add your development project root folder or any other folder containing Python files to *Project Source Folders*

* Add Plone instance files to *External Source Folders*::

yourworkspace/ploneinstanceproject/parts/omelette
yourworkspace/ploneinstanceproject/parts/zope2/lib/python


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.