package import question

Phoe6 orsenthil at
Mon Oct 22 10:10:34 CEST 2007

Hi all,
I have the following directory structure:


>From, I would like to do:
import ng
import yb

But it is not working! when I import the package, the modules present
inside the package are getting imported.

However, following the python document if I do
import ng.setdesktop
import yb.setdesktop
Works fine.

I would like to use the notation.
import <my_package_name>
and use the modules inside the package in the dotted module notation.
What should I do the enable such a kind of imports.

Please let me know.

Thank you.

More information about the Python-list mailing list