pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
330 stars 379 forks source link

[Question] Importing SWIG python wrappers #116

Open dhavalhparikh opened 4 years ago

dhavalhparikh commented 4 years ago

Hi All, I had a question regarding how to import SWIG generated python wrappers onto pytrack. SWIG is an interface generator which I've used to convert my C code to python. It creates a .so shared object binary and a python file that can be dropped into any project and then be used in python. I have the SWIG wrapper ready and tested. It works as expected.

Maybe this is not the correct place to ask it but going through the questions in the forum, I saw that you simply need to place .py in the flash of the pytrack and then you need to import it in the code.

My question

I would also need the SWIG generated .so file along with .py file for it work correctly. Would pytrack be able to work with the shared object binary?

Thank you!