I've cross-compiled python and embedded it in my iOS app. I'm able to execute python script as a string (PyRun_SimpleString
) and import module and execute function with arguments (PyImport_Import
and PyObject_CallObject
) like in python embedding doc.
But how can i execute python script file with arguments in command-line way:
file.py arg1 arg2
?