newbie question: how to run a python file if it is in a package

neoedmund neoedmund at gmail.com
Fri Sep 5 07:05:44 EDT 2008


for example:

X.py is in aaa.bbb and it has a line like "import aaa.bbb.Y"
how can I run X.py avoiding it saying such like "ImportError: No
module named aaa.bbb"?

Is all runnable script must be in the default package?

thanks.



More information about the Python-list mailing list