Another (untested) hack that might work:
def geanypy_path(): import geany, os path = os.path.dirname( os.path.dirname(os.path.dirname(geany.__file__))) return os.path.join(path, "geanypy.so")
Cheers, Matthew Brush
It works good too, but as I mentioned above, casting doc to correct pointer isn't simple in Python (and I have no ideas how to).
-- Best regards, Pavel Roschin aka RPG