51 if (
ippl ==
nullptr) {
52 PyObject* pyargv = PySys_GetObject(
"argv");
53 boost::python::handle<> wrapper(boost::python::borrowed(pyargv));
54 boost::python::list myList(wrapper);
56 int argc = int(boost::python::len(myList));
61 argvr[0] =
new char[7];
62 strcpy(argvr[0],
"pyopal");
63 for (
int i = 1; i < argc; ++i) {
64 int stringLength(boost::python::len(myList[i]));
65 const char* value = boost::python::extract<const char*>(
66 boost::python::str(myList[i]));
67 argvr[i] =
new char[stringLength+1];
68 strcpy(argvr[i], value);
70 argvr[argc] =
nullptr;
77 if (
gmsg ==
nullptr) {
82 gsl_set_error_handler(&errorHandlerGSL);