News

If the script is run as a standalone application, __name__ is set to __main__. If the script is imported, __name__ is set to the name of the module. Example of Python's __name__ variable in action.