diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2019-08-15 22:15:32 +0000 |
---|---|---|
committer | Stefan Sauer <ensonic@hora-obscura.de> | 2019-08-15 22:15:32 +0000 |
commit | c14f5bf9ed91f369adbb6504dbeb66a1edd1d1b3 (patch) | |
tree | cd4a92c7bd28f06fd05515b8600823f406e1fe55 /gtkdoc-check.in | |
parent | 8ec38b91f2f5d08c4153d61cabdd586c08db23cb (diff) | |
download | gtk-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-x | gtkdoc-check.in | 6 |
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 |