Author pablogsal
Recipients lkollar, ncoghlan, ned.deily, pablogsal, ronaldoussoren, vstinner
Date 2019-03-19.00:32:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Yup. But what is the best way to signal the caller that _PyPathConfig_ComputeArgv0 has failed because _Py_wgetcwd has failed without changing the API massively? 

Right now if _PyPathConfig_ComputeArgv0 returns null is assumed that is due to a memory error when calling PyUnicode_FromWideChar. So either we stop returning _Py_INIT_NO_MEMORY() and then skip appending to sys_path or we change the API to signal different problems to the caller.

Also, notice that the same function is used in sysmodule.c in PySys_SetArgvEx:

If argv[0] is not '-c' nor '-m', prepend argv[0] to sys.path.
Date User Action Args
2019-03-19 00:32:14pablogsalsetrecipients: + pablogsal, ronaldoussoren, ncoghlan, vstinner, ned.deily, lkollar
2019-03-19 00:32:14pablogsalsetmessageid: <>
2019-03-19 00:32:14pablogsallinkissue36236 messages
2019-03-19 00:32:14pablogsalcreate