Terry J. Reedy <tjre...@udel.edu> added the comment:
I just noticed that Py_Initialize "does not set sys.argv; use PySys_SetArgvEx() for that." https://docs.python.org/3/c-api/init.html#c.Py_Initialize https://docs.python.org/3/c-api/init.html#c.PySys_SetArgvEx void PySys_SetArgvEx(int argc, wchar_t **argv, int updatepath) The latter treats failure to initialize sys.argv as fatal. It suggests that embedders might want updatepath = 0. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41615> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com