Python Path weirdness???

Arinte shouldbe at message.com
Mon Nov 29 17:01:54 EST 1999


I have this code in my embedded app

 char* path ="D:\\POSSApps\\anotherposs app\\Embed Python\\some.exe";
 Py_SetProgramName(path);
 Py_Initialize();
 fname = fopen(name,"r");
 Py_InitModule("poss", Exposem);
 cout<<Py_GetPath()<<endl;

Some.exe is not the name of my program, but I want python to look in
different directory for .pyc files.
Py_GetPath() returns a string that does not include
"D:\\POSSApps\\anotherposs app\\Embed Python\\some.exe".

Is there another way to get this to work through my c program?  Or should
this be working?

Thanks.






More information about the Python-list mailing list