Tack, the following patch fixes handling of sys.argv when passed into
ORB_init() by using PyObject_Str() instead of PyObject_Repr(), since
_Repr() adds single quotes to it's argument. I've tested it locally.
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL
From: Jason T. <ta...@li...> - 2001-10-04 21:01:35
> for (i = 1; i < argc; i++) {
> - PyObject *o = PyObject_Repr(PyTuple_GetItem(orb_args, i - 1));
> + PyObject *o = PyObject_Str(PyTuple_GetItem(orb_args, i - 1));
> argv[i] = g_strdup(PyString_AsString(o));
> Py_DECREF(o);
> }
This looks good kiko, go ahead and commit it.
Or, sr=tack, as they say. :)
Jason.