Embedding Python in C++
Jethro Ma
jetmano1 at yahoo.com
Fri Dec 5 00:55:10 EST 2003
Here is what I have:
...
pName = PyString_FromString("btdownloadheadless");
pargs = PyString_FromString("argv = 'foo.torrent'");
PyImport = PyImport_ImportModuleEx
("btdownloadheadless",pargs, pargs, 0);
...
I have a feeling my pargs is wrong. How do I make it so that it is
the equivalent of typing
btdownloadheadless.py --responsefile=foo.torrent
in the command line
More information about the Python-list
mailing list