Re: python commmand line params from c++
- From: "Wesley Henwood" <wesleyhenwood@xxxxxxxxxxx>
- Date: 30 Jun 2005 12:16:08 -0700
Thanks Denis. PySys_SetArgv should do the trick. The nested function
calls are there because the FILE structrure produced by fopen is not
always compatible with the FILE structure produced by the Python C++
functions. Something do with the Python C being built with different
version ofthe c run-time libs.
The problem is a bit strange and should be adressed, it's documented
somewhere on the Python site, but no solution is given. That I had to
find by trial and error. Even better would be a function such as
PyRun_File(char *filename), and do away with handling the FILE
structure altogether.
.
- References:
- python commmand line params from c++
- From: Wesley Henwood
- Re: python commmand line params from c++
- From: Denis S. Otkidach
- python commmand line params from c++
- Prev by Date: Re: Scket connection to server
- Next by Date: Re: Seeking IDE
- Previous by thread: Re: python commmand line params from c++
- Next by thread: Re: python commmand line params from c++
- Index(es):