Ben Sizer <kylo...@gmail.com> wrote:
> What am I doing wrong?

What are you trying to achieve?
If you want to modify sys.path I suggest using Python/C API directly:
(boilerplate removed)
PyImport_ImportModule("sys")
PyObject_GetAttrString(sysmod_pointer, "path")
PyList_Insert(pathobj_pointer, 0, path_python_str)

--
Ivan


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to