We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 374c720 commit 1cbf5b0Copy full SHA for 1cbf5b0
1 file changed
doc/fake__jack.py
@@ -1,11 +1,18 @@
1
"""Mock module for Sphinx autodoc."""
2
3
-
4
import ctypes
5
+old_find_library = ctypes.util.find_library
6
+
7
8
+def new_find_library(name):
9
+ if 'jack' in name.lower():
10
+ return NotImplemented
11
+ return old_find_library(name)
12
13
14
# Monkey-patch ctypes to disable searching for JACK
-ctypes.util.find_library = lambda _: NotImplemented
15
+ctypes.util.find_library = new_find_library
16
17
18
class Fake(object):
0 commit comments