It's boilerplate code that protects users from accidentally invoking the script when they didn't intend to. Here are some common problems when the guard is omitted from a script: If you import the ...
This project hosts a python template for a main program. It consists of the following: main.py: A main skeleton with logging and arguments parse. logger.py: A simple wrapper for the logging python ...