bpo-36236: Set a fatal error if the current path cannot be obtained by pablogsal · Pull Request #12237 · python/cpython
Conversation
This might have a news entry since this crashes the interpreter on Mac OS while executing python -m module_name from a deleted directory.
@vstinner Not sure what is the best way to use _Py_INIT_USER_ERR here as this function (_PyPathConfig_ComputeArgv0) returns a Pyobject*.
Nevermind, I have modified the function to take a PyObject** as third argument and return a _PyInitError :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters