[docs] [issue36196] sys.executable does not return python3 executable when using uwsgi

Inada Naoki report at bugs.python.org
Tue Mar 5 10:58:02 EST 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

I don't think this is a documentation bug.  They insert "uwsgi" to "sys.executable" manually.

https://github.com/unbit/uwsgi/blob/3149df02ed443131c54ea6afb29fcbb0ed4d1139/plugins/python/pyutils.c#L398-402

#ifdef PYTHREE
	PyDict_SetItemString(sys_dict, "executable", PyUnicode_FromString(uwsgi.binary_path));
#else
	PyDict_SetItemString(sys_dict, "executable", PyString_FromString(uwsgi.binary_path));
#endif

----------
nosy: +inada.naoki

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36196>
_______________________________________


More information about the docs mailing list