Skip to content

Commit

Permalink
Add support for pathlib.Path objects
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Nov 27, 2024
1 parent 96d5f51 commit b33d3d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions leafmap/maplibregl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4672,6 +4672,9 @@ def open_gps_traces(
if arrow_args is None:
arrow_args = {}

filepaths = [
str(filepath) for filepath in filepaths
] # Support pathlib.Path objects
filepath_widget = widgets.Dropdown(
value=None,
options=filepaths,
Expand Down

0 comments on commit b33d3d5

Please sign in to comment.