2017-11-20, 02:35
I'm developing an add-on that uses an Enum type that is not built-in Kodi Python. Enum is a new type (officially blessed by Python) and therefore is not a single .py file. Normally I would install the package into the current version of Python. I need to make Enums available to all my source code modules.
I've established a resource/lib directory for all my additional modules and referenced it in my addon.xml file. I read that I should copy the external package files to my lib directory and that would make the Enum type available for import in my source files. It hasn't worked and I get an error stating that it cannot find Enum.
Does anyone know how to resolve this issue?
Sent from my Galaxy Tab 2
I've established a resource/lib directory for all my additional modules and referenced it in my addon.xml file. I read that I should copy the external package files to my lib directory and that would make the Enum type available for import in my source files. It hasn't worked and I get an error stating that it cannot find Enum.
Does anyone know how to resolve this issue?
Sent from my Galaxy Tab 2