Eclipse/PyDev question

Fabio Zadrozny fabiofz at gmail.com
Mon Aug 13 12:09:45 EDT 2007


On 8/13/07, king kikapu <aboudouvas at panafonet.gr> wrote:
>
> Ah, i forgot another one:
>
> as any project evolves, you need to organize it in directories. So, i
> have a project named "Dev" and Eclipse has provided me (in Navigator)
> with "Dev" and "Src". Inside Src i put my .py files. Let's say that i
> want to create a directory there (will i make it in "Src" or in "Dev")
> to put other .py files. I tried adding a "Folder", i also tried to add
> a "Pydev Source Folder", either way i cannot refer to these files from
> a .py located in Src directory with the usual "from folderA
> import"...It does not understand the folder structure and i am pretty
> sure i am missing something obvious here...
>

You have to set as source folders the exact same folders you'd usually put
into your pythonpath (that's one level before the module you're going to
import). Details on how to do that can be found at:
http://fabioz.com/pydev/manual_101_root.html

Cheers,

Fabio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070813/b9f7b6ac/attachment.html>


More information about the Python-list mailing list