Am 18.04.2014 13:48, schrieb Peter Otten:
> Egon Frerich wrote:
> 

> 
> Basically Python 3 allows for packages to omit the __init__.py
> 
> $ mkdir aaa
> $ python3 -c'import aaa; print(aaa)'
> <module 'aaa' (namespace)>
> $ touch aaa/__init__.py
> $ python3 -c'import aaa; print(aaa)'
> <module 'aaa' from './aaa/__init__.py'>
> 
> Namespace packages have advantages when you want to merge submodules from 
> multiple places into one package. See 
> <http://legacy.python.org/dev/peps/pep-0420/> for the details.
> 
> Your actual problem is probably that the parent directory for the mptt 
> package is not in your sys.path,


The init-file in the parent directory was copied and had got the wrong
ownership.

Thanks Peter

Egon


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to