summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-11-02 00:11:32 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-11-02 00:11:32 +0000
commitbca4cb9531c6edae5aaf6080e8001b0c5949b7ff (patch)
treebbba1b3c443ddaf02992d47711a589ae4d3d190e
parentdc3ee1d2705415a6ab8df5b89a11008b11bcfbbf (diff)
downloadgobject-introspection-bca4cb9531c6edae5aaf6080e8001b0c5949b7ff.tar.gz
If any of the path parts in sys.path contains lib64, use lib64 as a libdir instead of lib
svn path=/trunk/; revision=861
-rwxr-xr-xtools/g-ir-scanner8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index 99ddcf76..82bbf34d 100755
--- a/tools/g-ir-scanner
+++ b/tools/g-ir-scanner
@@ -31,7 +31,13 @@ if (os.path.exists(os.path.join(basedir, '.svn')) or
os.path.exists(os.path.join(basedir, '.git'))):
path = basedir
else:
- path = os.path.join(basedir, 'lib', 'python%d.%d' % sys.version_info[:2],
+ libdir = 'lib'
+ for p in sys.path:
+ if 'lib64' in p:
+ libdir = 'lib64'
+ break
+
+ path = os.path.join(basedir, libdir, 'python%d.%d' % sys.version_info[:2],
'site-packages')
sys.path.insert(0, path)