biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / mido / libportmidi-cdll.patch
blob455064f12b9ac4fdfdf7d0957b1aef548edcf8d7
1 diff --git a/mido/backends/portmidi_init.py b/mido/backends/portmidi_init.py
2 index 84bb128..5efcdaa 100644
3 --- a/mido/backends/portmidi_init.py
4 +++ b/mido/backends/portmidi_init.py
5 @@ -10,13 +10,7 @@ from ctypes import (CDLL, CFUNCTYPE, POINTER, Structure, c_char_p,
6 create_string_buffer, byref)
7 import ctypes.util
9 -dll_name = ''
10 -if sys.platform == 'darwin':
11 - dll_name = ctypes.util.find_library('libportmidi.dylib')
12 -elif sys.platform in ('win32', 'cygwin'):
13 - dll_name = 'portmidi.dll'
14 -else:
15 - dll_name = 'libportmidi.so'
16 +dll_name = '@libportmidi@'
18 lib = CDLL(dll_name)