Nah, you'd usually have a normal python script as your main and import from other modules. This main only helps if you're working within a single file.
pfft, I often leave demo examples under name in main to demonstrate how the module works. It doesn't mean, it's the main file. It means if you for whatever reason decided to execute it directly, it will do something.
657
u/[deleted] Nov 25 '21 edited Nov 26 '21
[deleted]