I have a Python script which is used like this
python script.py <filename>
This script does some stuff on a file and prints a message saying everything went well, otherwise an error message.
What I need is to be able to call that script in a C function in which I have the filename, like this:
void call(char* filename){
//call python script
}
Then I need to have the error message in my C function, but not only errors expected in the script, also coding errors like missing import or bad indentation.
Is that possible?