On Tue, Nov 11, 2008 at 7:08 AM, Markus Mayer <[EMAIL PROTECTED]> wrote:

> Steve Holden schrieb:
> > If you want shorter names in your main code, of course, you can use
> >
> > import project.main as main
> > import project.gui.mainwindow as window
> >
> > or somethihg similar.
> >
> > regards
> >  Steve
>
>

Are explicit relative imports applicable here? Could he do a

    from .. import project.main as main

without adding another __init__.py?

Or do I have my head screwed on funny?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to