summaryrefslogtreecommitdiff
path: root/gtkdoc-mkdb.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-mkdb.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-mkdb.in')
-rwxr-xr-xgtkdoc-mkdb.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 42d5731..641f3c4 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -24,7 +24,11 @@ from __future__ import print_function
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, config, mkdb