Skip to content Skip to sidebar Skip to footer

Adding Python Script To C++ Project

How would I go about adding a script written in python to a c++ project? Thanks Edit: Basically all the script does is email some data. I would like to pass the data and maybe the

Solution 1:

You could look at Boost.Python which is a "a C++ library which enables seamless interoperability between C++ and the Python programming language."

You have to be more specific, though.

Solution 2:

Solution 3:

The most primitve solution would be to use the system command to call you script, but that does limit your control over it to setting environment variables and passing parameters.

system("myscript.py param1 param2") 

Post a Comment for "Adding Python Script To C++ Project"