Nov-13-2022, 12:27 PM
Another way to think of it is that you can change the behavior of the .py file depending on whether it is run directly or imported. I use it then to run a demo of a module if run directly, but not if imported.
As @bowlofred asked, what errors or bad behavior are you having, and can you post the code?
As @bowlofred asked, what errors or bad behavior are you having, and can you post the code?