Embed python interpreter in embedded c application

289 Views Asked by At

I'm working on an embedded c firmware to run on a server, I connect to this firmware through SSH. I want to run some scripts in this firmware, so I want to embed Python interpreter so that once I run the script file (Written in Python) it's to be passed to python interpreter and the results are redirected to SSH again.

I have searched the internet for a possible solution, but all what I found is talking about embedding in windows application and using the normal hyper terminal for that.

Can anybody help me!

1

There are 1 best solutions below

2
On

Take a look at this. I would also take a look at Lua, which is expressly designed / implemented to be eminently embeddable.