python-visualization / branca

This library is a spinoff from folium, that would host the non-map-specific features.
https://python-visualization.github.io/branca/
MIT License
111 stars 63 forks source link

support for pathlib object #103

Closed wd60622 closed 2 years ago

wd60622 commented 2 years ago

PR for this issue: https://github.com/python-visualization/branca/issues/102

saving object can take pathlib object

wd60622 commented 2 years ago

The Path object is the parent class for both Window's and non-Window's machines. https://github.com/python/cpython/blob/04215a427232e55efdc1adcda50a15197f518ca9/Lib/pathlib.py#L853-L871

Any other steps required here? @Conengmo

Conengmo commented 2 years ago

Nice addition, thanks Will!