#include "python.h" #include <iostream> using python::Python; int main(int argc, char *argv[]) { int res; Python * interpreter = Python::Instance(); interpreter->set_argv(argc,argv); interpreter->run_string("import sys"); interpreter->run_string("print sys.argv"); }