summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-22 21:48:23 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-22 21:48:23 +0000
commit7b7889fa1e7c1ecb3204a6416f3968153b3447ac (patch)
treec307f4bd6054907832e363ec17a521546543b7ce /giscanner/sourcescanner.py
parentd1fd7fbea2949f3e90d75342c26459578bab50d8 (diff)
downloadgobject-introspection-7b7889fa1e7c1ecb3204a6416f3968153b3447ac.tar.gz
Check for ../gobject-introspection-1.0.pc.in to determine if we run
2008-08-22 Johan Dahlin <johan@gnome.org> * giscanner/sourcescanner.py: Check for ../gobject-introspection-1.0.pc.in to determine if we run installed or uninstalled. svn path=/trunk/; revision=464
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r--giscanner/sourcescanner.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index 4315cdca..cc0373af 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -236,8 +236,10 @@ class SourceScanner(object):
defines.append('__G_LIBCONFIG_H__')
dirname = os.path.dirname(os.path.abspath(__file__))
- includedir = os.path.join(dirname, '..', 'giscanner')
- if not os.path.exists(includedir):
+ if os.path.exists(
+ os.path.join(dirname, '..', 'gobject-introspection-1.0.pc.in')):
+ includedir = os.path.join(dirname, '..', 'giscanner')
+ else:
includedir = INCLUDEDIR
filenames.insert(0, os.path.join(includedir, 'glibconfig-scanner.h'))