This is because in Python 3 any folder (having an __init__.py or not) below
the PYTHONPATH is a package (so, PyDev is just reflecting a change on
Python itself).

The difference in Python 3 is that if it has an __init__.py file, it's a
regular package and can't be extended from other places in the PYTHONPATH,
if it doesn't have an __init__.py it automatically becomes a namespace
package (in which case any place in the PYTHONPATH with the same structure
will be part of that namespace).

Best Regards,

Fabio

On Sun, Dec 16, 2018 at 10:27 AM Zawack, Kelson <kelson.zaw...@yale.edu>
wrote:

> I would like to create a folder in a pydev project, but it seems pydev
> turns it into a package.  This is bad partly because it is not clear then
> what is a folder and what is a package, but also because it sometimes
> complains when I try to add files to the folder because the __init__ file
> is not set up.  I don’t remember it being this way in the past.  Has
> something changes or have I miss configured something?
>
> Thanks for your help
> _______________________________________________
> pydev-code mailing list
> pydev-code@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pydev-code
>
_______________________________________________
pydev-code mailing list
pydev-code@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to