diff options
author | Johan Dahlin <johan@src.gnome.org> | 2008-11-02 00:11:32 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-02 00:11:32 +0000 |
commit | bca4cb9531c6edae5aaf6080e8001b0c5949b7ff (patch) | |
tree | bbba1b3c443ddaf02992d47711a589ae4d3d190e | |
parent | dc3ee1d2705415a6ab8df5b89a11008b11bcfbbf (diff) | |
download | gobject-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-x | tools/g-ir-scanner | 8 |
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) |