__main__
__main__.py
- When there is a file with this name in a module folder it makes it so that you dont have to explicitly point to a script to run the module.
- instead of:
python repo/script.py
- it can just be
python repo
- instead of:
- When there is a file with this name in a module folder it makes it so that you dont have to explicitly point to a script to run the module.