Project layout / Import files from different subdirectories

Markus Mayer code at organisati.on
Tue Nov 11 07:08:20 EST 2008


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

Yeah, I was going with the "from x import y" scheme by now, didn't know
"as" was available as well. Perfect, that makes it a bit easier.

Thanks!
Markus

--
PGP/GPG key 0x2EB39BF9



More information about the Python-list mailing list