architv / soccer-cli

:soccer: Football scores for hackers. :computer: A command line interface for all the football scores.
MIT License
1.09k stars 221 forks source link

__init__ #100

Closed sxu2583 closed 7 years ago

sxu2583 commented 7 years ago

Just a question pertaining to the use of the init python file. If its blank is it there just as a place holder?

humachine commented 7 years ago

Not just as a placeholder. Putting an init.py file in a directory makes that directory known as a package. So 'soccer' can now be imported as a package into code.

Also, any code in the init.py file will be executed when this package is imported. It's good convention to leave it as empty.