sigmf / sigmf-python

Easily interact with Signal Metadata Format (SigMF) recordings.
https://sigmf.org
GNU Lesser General Public License v3.0
42 stars 16 forks source link

Support Pathlib Paths in addition to string paths #29

Closed Teque5 closed 10 months ago

Teque5 commented 11 months ago
from pathlib import Path
import sigmf
someplace = Path('/tmp')
sigmf.sigmffile.fromfile(someplace / 'whatever.sigmf')

AttributeError: 'PosixPath' object has no attribute 'lower'

Adding support for pathlib.PosixPath should be trivial.