[docs] Regarding embedding Python in Another Application

Tom Epperly epperly2 at llnl.gov
Thu Oct 25 23:02:07 CEST 2012


Regarding this section, 
http://docs.python.org/extending/embedding.html#very-high-level-embedding, 
according to http://docs.python.org/c-api/init.html Py_SetProgramName() 
should be called before Py_Initialize() (see the comment for 
Py_SetProgramName()). This matters for the particular case of Mac OS X 
(see 
http://mail.python.org/pipermail/pythonmac-sig/2012-October/023746.html).

I recommend adding a Py_SetProgramName() to the example.

Regards,

Tom Epperly


More information about the docs mailing list