[issue43113] os.posix_spawn errors with wrong information when shebang points to not-existing file
STINNER Victor
report at bugs.python.org
Wed Feb 3 06:00:35 EST 2021
STINNER Victor <vstinner at python.org> added the comment:
> FileNotFoundError: [Errno 2] No such file or directory: './demo'
'./demo' filename is set with the following code in Modules/posixmodule.c:
if (err_code) {
errno = err_code;
PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, path->object);
goto exit;
}
I understand that Tomas wants to raise the OSError with no filename.
I add Pablo and Joannah in the loop, they worked on exposing posix_spawn function in Python.
----------
nosy: +nanjekyejoannah, pablogsal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43113>
_______________________________________
More information about the Python-bugs-list
mailing list