Message 343647 - Python tracker
I understand that this bug has been fixed by the implementation of the PEP 587 in bpo-36763: Py_SethPath() now uses dynamically allocated memory and can be called multiple times. Moreover, the PEP 587 now provides a better API for the Path Configuration. I close the issue. Reopen/comment the issue if I misunderstood it :-)