DEV Community

Discussion on: Dead Simple Python: Project Structure and Imports

Collapse
 
codemouse92 profile image
Jason C. McDonald

I don't think there are any formal guidelines on the topic, to be honest. My use of app.py has a lot to do with separation of concerns; I put my GUI startup code in app.py, and my non-GUI startup code in __main__.py. I can't really point to something that says this is "right" or "wrong"...it just works out pretty well for my project. It's something that has to be considered on a project-by-project basis, really.