Skip to content

Commit

Permalink
Update sleap/gui/dataviews.py
Browse files Browse the repository at this point in the history
Co-authored-by: Liezl Maree <[email protected]>
  • Loading branch information
7174Andy and roomrys authored Dec 17, 2024
1 parent 9d747cb commit d38c0c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sleap/gui/dataviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ def item_to_data(self, obj, item: "Video"):
filename = getattr(item, "filename")
name = Path(filename).name
elif property == "filepath":
splitted = getattr(item, "filename").split("/")[:-1]
filename = getattr(item, "filename")
parent = Path(filename).parent
data[property] = "/".join(splitted)
else:
data[property] = getattr(item, property)
Expand Down

0 comments on commit d38c0c4

Please sign in to comment.