[gtk-doc] scan: fix import
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] scan: fix import
- Date: Mon, 10 Apr 2017 16:22:06 +0000 (UTC)
commit ded114206ea81a4d847343adaab69233563b49a1
Author: Stefan Sauer <ensonic users sf net>
Date: Mon Apr 10 17:50:12 2017 +0200
scan: fix import
Import from '.' and remove the import path modification.
gtkdoc/scan.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc/scan.py b/gtkdoc/scan.py
index f723a1a..aaba23e 100644
--- a/gtkdoc/scan.py
+++ b/gtkdoc/scan.py
@@ -37,9 +37,8 @@ import logging
import os
import re
import sys
-sys.path.append('@PYTHON_PACKAGE_DIR@')
-from gtkdoc import common
+from . import common
# do not read files twice; checking it here permits to give both srcdir and
# builddir as --source-dir without fear of duplicities
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]