xbmc / generator-kodi-addon

Yeoman generator for the most common Kodi addon types.
http://www.kodi.tv
Other
74 stars 25 forks source link

The .py file referenced from Addon.xml should be as minimal as possible #11

Closed MartijnKaijser closed 7 years ago

MartijnKaijser commented 7 years ago

To get best speed the default python file should be bare minimal and then call the main file from that. Reason is the main referenced one isn't kept compiled while the others are kept compiled

razzeee commented 7 years ago

So should we do a minimal startup/main.py in the main folder and then just call an entry point in the resource/lib folder? Does this make sense for all addon types? Even contextmenus?

MartijnKaijser commented 7 years ago

any file that could become quite big. Not sure where we should put the threshold

razzeee commented 7 years ago

Let's just default to that, for every type that can set a *.py file to be called via addon.xml