Skip to content

Commit 77112ff

Browse files
committed
Fix documentation build.
1 parent 1b03f4c commit 77112ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"""
55

66
import re
7+
import sys
8+
from pathlib import Path
79

8-
import colour_checker_detection as package
10+
sys.path.append(str(Path(__file__).parent.parent))
11+
12+
import colour_checker_detection as package # noqa: E402
913

1014
basename = re.sub(
1115
"_(\\w)", lambda x: x.group(1).upper(), package.__name__.title()

0 commit comments

Comments
 (0)