bpo-36236: Set a fatal error if the current path cannot be obtained by pablogsal · Pull Request #12237 · python/cpython

Conversation

@tirkarthi

This might have a news entry since this crashes the interpreter on Mac OS while executing python -m module_name from a deleted directory.

@pablogsal

@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 :)

@vstinner

@pablogsal

Labels