Skip to content

Commit 8cc732a

Browse files
authored
Merge pull request #328 from msuch/mac-import-fix
Fix NameError for _machine reference when loading 'sndfile' library on darwin
2 parents 985d36e + 4b4d4d3 commit 8cc732a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soundfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
except OSError:
145145
if _sys.platform == 'darwin':
146146
from platform import machine as _machine
147-
_packaged_libname = 'libsndfile_' + machine() + '.dylib'
147+
_packaged_libname = 'libsndfile_' + _machine() + '.dylib'
148148
_libname = 'libsndfile.dylib'
149149
elif _sys.platform == 'win32':
150150
from platform import architecture as _architecture

0 commit comments

Comments
 (0)