importing modules symbols from packages.
Steven Taschuk
staschuk at telusplanet.net
Thu May 22 11:23:18 EDT 2003
Quoth Richard Béneyt:
[...directory structure trimmed...]
> python-packages
> |__ pack1
> |__ pack2
> |__ spack1
> |__ spack2
[...]
> from pack1.spack1.modspack1 import aSymbol
>
> Python answers :
>
> ImportError: No module named spack1.modspack1
If the directory structure above is correct, this is to be
expected; pack1 has no subpackages.
Do you mean to write
from pack2.spack1.modspack1 import aSymbol
?
--
Steven Taschuk "The world will end if you get this wrong."
staschuk at telusplanet.net -- "Typesetting Mathematics -- User's Guide",
Brian Kernighan and Lorrinda Cherry
More information about the Python-list
mailing list