summaryrefslogtreecommitdiff
path: root/gtkdoc-mkhtml2.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-mkhtml2.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-mkhtml2.in')
-rwxr-xr-xgtkdoc-mkhtml2.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtkdoc-mkhtml2.in b/gtkdoc-mkhtml2.in
index 76b357e..14fc3bc 100755
--- a/gtkdoc-mkhtml2.in
+++ b/gtkdoc-mkhtml2.in
@@ -21,7 +21,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, config, mkhtml2