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

2008-09-05 Thread neoedmund
On Sep 5, 8:12 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > neoedmund schrieb: > > > 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 mu

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

2008-09-05 Thread Diez B. Roggisch
neoedmund schrieb: 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? There is no such thing as a "default package" All import

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

2008-09-05 Thread neoedmund
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. -- http://mail.python.org/mailman/listinfo/python-list