Skip to content

Commit a9d3506

Browse files
committed
Fixed discid import when building docs
1 parent 306a8aa commit a9d3506

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

doc/conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
import os
33
import sys
44

5-
# to gather version information
6-
import discid
7-
85
sys.path.insert(0, os.path.abspath(".")) # for extensions
96
sys.path.insert(0, os.path.abspath("..")) # for the code
107

@@ -18,9 +15,15 @@ def __call__(self, *args):
1815
def __getattr__(cls, name):
1916
return Mock()
2017

18+
def discid_get_version_string(self):
19+
return ""
20+
2121

2222
ctypes.cdll.LoadLibrary = Mock() # type: ignore
2323

24+
# to gather version information
25+
import discid # noqa: E402
26+
2427
# -- General configuration -----------------------------------------------------
2528

2629
needs_sphinx = "1.0"

0 commit comments

Comments
 (0)