J
Jethro Ma
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
....
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