What's up with all of those null __init__.py files?

FFY00

New member
Nov 19, 2017
4
0
0
Portugal
I've seen a lot of null __init__.py files in addons. I'm new to kodi development but I'm an experienced programmer. I don't understand why we have those null files?
 

invisable

New member
Feb 23, 2013
767
0
0
UK
I'm not an experienced coder at all. But since you have had no reply im going to have a go.
I believe. _init_.py files are used to mark all the files in the directory as python files, and is serves the other purpose of automatically initalizing the python script. I think It can be blank null file but as long as its there it serves its purpose.
believe it's a not required in never versions of Python.

Like I said I'm not experienced in coding so terminology is prob all wrong.
 

FFY00

New member
Nov 19, 2017
4
0
0
Portugal
Hum, that kinda makes sense. I know they're uses to initialize the script, I just thought that wouldn't be needed to include when they're null. Thanks man.