This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mathias
Recipients eric.snow, mathias, ncoghlan, ronaldoussoren
Date 2013-07-04.07:56:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hi Ronald, Eric, Nick,

Looking up the symbol name of the current function should work also.
And I am free to rename these functions to whatever you like.

Attached is version 2 of the patch with the suggested changes.
The windows implementation is still untested.

It would be interesting to know if this kind of lookup scheme can be included into PEP 432.
Provided the spirit of this PEP, I can imagine to provide several functions to build up the pythonpath starting from something.
So say, have a 'get python path from argv[0]', a 'get python path from shared python library' and a 'get python path from prefix' function (I may miss a variant). Also a 'build python path from python home root entry point' function would be useful and could be used by the above functions.
An application embedding python can then call those functions that are sensible for its own use and installation scheme to set the module path in the PyConfig struct. The Py_ReadConfig function will internally use the above suggested functions to build up the default configuration if not already provided.


Date User Action Args
2013-07-04 07:56:08mathiassetrecipients: + mathias, ronaldoussoren, ncoghlan, eric.snow
2013-07-04 07:56:08mathiassetmessageid: <>
2013-07-04 07:56:08mathiaslinkissue18309 messages
2013-07-04 07:56:08mathiascreate