summaryrefslogtreecommitdiff
path: root/gtkdoc-check.in
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2019-08-15 22:15:32 +0000
committerStefan Sauer <ensonic@hora-obscura.de>2019-08-15 22:15:32 +0000
commitc14f5bf9ed91f369adbb6504dbeb66a1edd1d1b3 (patch)
treecd4a92c7bd28f06fd05515b8600823f406e1fe55 /gtkdoc-check.in
parent8ec38b91f2f5d08c4153d61cabdd586c08db23cb (diff)
downloadgtk-doc-c14f5bf9ed91f369adbb6504dbeb66a1edd1d1b3.tar.gz
Meson: Fix running tools uninstalled
This fix getting directories when builddir!=srcdir which is always the case with Meson.
Diffstat (limited to 'gtkdoc-check.in')
-rwxr-xr-xgtkdoc-check.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtkdoc-check.in b/gtkdoc-check.in
index 8c8e917..d9e2ad5 100755
--- a/gtkdoc-check.in
+++ b/gtkdoc-check.in
@@ -22,7 +22,11 @@
import argparse
import sys
-sys.path.append('@PYTHON_PACKAGE_DIR@')
+
+try:
+ import gtkdoc_uninstalled
+except ModuleNotFoundError:
+ sys.path.append('@PYTHON_PACKAGE_DIR@')
from gtkdoc import common, check, config