gobject-introspection r861 - trunk/tools
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r861 - trunk/tools
- Date: Sun, 2 Nov 2008 00:11:32 +0000 (UTC)
Author: johan
Date: Sun Nov 2 00:11:32 2008
New Revision: 861
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=861&view=rev
Log:
If any of the path parts in sys.path contains lib64, use lib64 as a libdir instead of lib
Modified:
trunk/tools/g-ir-scanner
Modified: trunk/tools/g-ir-scanner
==============================================================================
--- trunk/tools/g-ir-scanner (original)
+++ trunk/tools/g-ir-scanner Sun Nov 2 00:11:32 2008
@@ -31,7 +31,13 @@
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]