Python Path weirdness???
Adrian Eyre
a.eyre at optichrome.com
Tue Nov 30 09:01:19 EST 1999
> char* path ="D:\\POSSApps\\anotherposs app\\Embed Python\\some.exe";
> Py_SetProgramName(path);
>From what I understand, you need:
char* path ="D:\\POSSApps\\anotherposs app\\Embed Python";
PyObject* pyPath = PyString_FromString(path);
PyObject* pythonPath = PySys_GetObject("path");
PyList_Append(pythonPath, pyPath);
Py_DECREF(pyPath);
--------------------------------------------
Adrian Eyre <mailto:a.eyre at optichrome.com>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233 Fax: +44 1483 760 644
http://www.optichrome.com
--------------------------------------------
More information about the Python-list
mailing list