Skip to content

Commit

Permalink
fixing pathlib behavior on python 3.4 and 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnd committed Apr 23, 2020
1 parent 1f62f18 commit faf11ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinytag/tinytag.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get(cls, filename, tags=True, duration=True, image=False, ignore_errors=Fals
try: # cast pathlib.Path to str
import pathlib
if isinstance(filename, pathlib.Path):
filename = filename.expanduser().absolute()
filename = str(filename.absolute())
except ImportError:
pass
else:
Expand Down

0 comments on commit faf11ab

Please sign in to comment.