I have noticed that a lot of articles that show how to create a python application uses __init__.py in the root folder of the application. Some also use __main__.py in addition to the actual python script that is executed to run the application. Since python does not have any forced folder structures for applications it is easy for those new to Python to get really confused about it all.
Share this post
What's up with __init__.py and __main__.py ?
Share this post
I have noticed that a lot of articles that show how to create a python application uses __init__.py in the root folder of the application. Some also use __main__.py in addition to the actual python script that is executed to run the application. Since python does not have any forced folder structures for applications it is easy for those new to Python to get really confused about it all.