New Python function

Hi guys, i’m working on a patch that allow dynamic icon loading for python scripts, part of the job is done, but have some doubt on this:

I need to make a PyObject that will be exposed to the public api, where i have to place this object?? since the icons loading function reside in interface_icons.c, i don’t know exactly where to put it, I have to create a python module just for one function, my idea is to have a python function that return a int to be used with icon_value, to be used for python UI drawing.

Said that, interface_icons.c is the right place for run-time icons upload code??

Ok i’ve implemented everything! All it’s working, but the question remain…