• Victor Stinner's avatar
    bpo-38234: Cleanup getpath.c (GH-16367) · 221fd847
    Victor Stinner authored
    * search_for_prefix() directly calls reduce() if found is greater
      than 0.
    * Add calculate_pybuilddir() subfunction.
    * search_for_prefix(): add path string buffer for readability.
    * Fix some error handling code paths: release resources on error.
    * calculate_read_pyenv(): rename tmpbuffer to filename.
    * test.pythoninfo now also logs windows.dll_path
    221fd847
getpath.c 40.5 KB