Function python_cmd_string (o2scl)

O2scl : Function List

int o2scl::python_cmd_string(std::string cmd, std::string &result, bool err_on_fail = true, int nmax = 80)

Execute a python command and return the resulting string.

python_cmd_string("\"print(3+5)\"",result);