summaryrefslogtreecommitdiff
path: root/gtkdoc-scan.in
diff options
context:
space:
mode:
Diffstat (limited to 'gtkdoc-scan.in')
-rwxr-xr-xgtkdoc-scan.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 954c811..7893ebc 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.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, scan