Reputation: 333
I created a Python extension to a C++ library.
How do I add code to the interface file, to be executed when the module is loaded/imported ?
Thanks,
Upvotes: 0
Views: 487
Use %init tag as described in: SWIG Basics - Code insertion
Upvotes: 2