[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-10-18 Thread Tal Einat
Tal Einat added the comment: After further reading, especially the docs for OSError which describe the filename and filename2 attributes, I agree that setting .filename on the FileNotFoundError exception is the way to go. -- ___ Python tracker

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-10-17 Thread Tal Einat
Change by Tal Einat : -- type: -> enhancement versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ __

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-10-17 Thread Tal Einat
Tal Einat added the comment: I agree that having the error message include the executable name could be useful. -- nosy: +taleinat ___ Python tracker ___

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-04 Thread Russell Davis
Change by Russell Davis : -- keywords: +patch pull_requests: +19230 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19915 ___ Python tracker ___ __

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-04 Thread Russell Davis
New submission from Russell Davis : To repro: >>> import os, sys >>> os.execv("nosuchfile", ["nosuchfile"]) Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2] No such file or directory >>> print(sys.last_value.filename) None -- components: Library (L