Splitting up python files & adding an addon to the official repo
#1
Hello fellow Devs Smile!

I'm currently working on a Kodi Addon that will allow you to add Youtube Channels as TV shows to your library! It's gonna be awesome. It's almost finished. However my code is still a huge mess. I've tried splitting up my python in files and using import to call those files, but to no avail. I feel like it should be a very basic thing to do, like in php with include(..). So how can i split up my functions in different files?

Also, I've read the page on submitting an addon to the official repo; http://kodi.wiki/view/Submitting_Add-ons. It's still not clear to me however. Do i just create a repo on Git, and then do a pull request at the Git of Kodi?
Reply
#2
Just put all your non-main files under resources/lib/ and then import them as normal. You may need to add empty __init__.py files to resources/ and resources/lib/.
Reply
#3
(2015-09-18, 16:12)Sleuteltje Wrote: Also, I've read the page on submitting an addon to the official repo; http://kodi.wiki/view/Submitting_Add-ons. It's still not clear to me however. Do i just create a repo on Git, and then do a pull request at the Git of Kodi?

You just create an email and address it to the mailing list. With every info included. This depends a little bit on how you want to provide it.
See http://kodi.wiki/view/Submitting_Add-ons...nt_updates
Reply

Logout Mark Read Team Forum Stats Members Help
Splitting up python files & adding an addon to the official repo0