Project layout / Import files from different subdirectories

Markus Mayer code at organisati.on
Tue Nov 11 08:46:54 CET 2008

Hi folks.

I'm new to python and have a slight problem importing - or maybe
understanding - modules. I'm writing a GUI application using Qt4 and
wanted to separate the business from the view logic. So I have my folder
structure as following:


project/ gui/

Now I can import mainwindow etc. from main and important, but how do I
do it the other way round?

Also, is there maybe a better project layout? I couldn't find anything
useful on it asking Dr. Google.
Best regards,

PGP/GPG key 0x2EB39BF9
PGP/GPG key 0x2EB39BF9

More information about the Python-list mailing list