I want to call a program ( .exe) that is written in C ++ and compiled from Python. The executable takes two files as input and returns the result.
I need to do this for multiple files. So, I would like to write a small script in python that iterates over several files, passes them to the executable, and returns the values.
Now I have done my search, and I know about SWIG and Boost :: Python may be an option, but I tried to find if there is an easier way. I do not need to "extend" the program in C ++. I just want to call it the same as on the command line and get the return number.
Sagar source
share