[issue9910] Add Py_SetPath API for embeddint python

2010-09-20 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : When calling Py_Initialize() from an embedding application, there is currently no way for the application to override Python's initial settin g of sys.path. An elaborate mechanism in getpathp.c kicks in, guessing the path based on several criteria.

[issue9910] Add Py_SetPath API for embeddint python

2010-09-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: You must also update Modules/getpath.c. You should also add documentation. -- nosy: +pitrou ___ Python tracker ___ _

[issue9910] Add Py_SetPath API for embeddint python

2010-09-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Right, forgot about getpath.c. Added documentation. See the latest version of the patch. Please note that I was unable to test the non-windows compile. -- Added file: http://bugs.python.org/file19003/py_setpath.patch ___