C API: getting sys.argv

williams.jasonscott at gmail.com williams.jasonscott at gmail.com
Tue May 16 05:04:00 CEST 2006


Hi,

How would one go about getting sys.argv fom within the context of a C
API extention module?  I want to pass it along to C library that I'm
calling from my module code.

TIA~

I'm trying to load the sys module using:

PyObject *_argv = PyImport_ImportModule("sys.argv");

but it is coming back NULL...




More information about the Python-list mailing list