pybind / cmake_example

Example pybind11 module built with a CMake-based build system
Other
613 stars 218 forks source link

chore: use pathlib #91

Closed henryiii closed 1 year ago

henryiii commented 1 year ago

More pathlib.

henryiii commented 1 year ago

Okay, we are hitting a pathlib bug that was solved in 3.10, but never back ported to 3.8 & 3.9. Which actually is rather good, since otherwise this would would only work for some patch release or newer. On Windows, p.resolve() does not resolve if the file does not exist. https://discuss.python.org/t/pathlib-absolute-vs-resolve/2573 & https://github.com/python/cpython/issues/82852