Skip to content

Commit

Permalink
Add back abspath() lost in merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntabris committed Jan 23, 2020
1 parent 4bb4cb3 commit c656e0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sleap/io/dataset.py
Expand Up @@ -1167,6 +1167,8 @@ def save_file(
Returns:
None.
"""
# Convert to full (absolute) path
filename = os.path.abspath(filename)

# Make sure that all directories for path exist
os.makedirs(os.path.dirname(filename), exist_ok=True)
Expand Down

0 comments on commit c656e0f

Please sign in to comment.