gobject-introspection r487 - in trunk: . giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r487 - in trunk: . giscanner
- Date: Mon, 25 Aug 2008 00:32:28 +0000 (UTC)
Author: walters
Date: Mon Aug 25 00:32:27 2008
New Revision: 487
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=487&view=rev
Log:
2008-08-24 Colin Walters <walters verbum org>
* giscanner/glibtransformer.py: Fail with better
error if we can't find library.
Modified:
trunk/ChangeLog
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Mon Aug 25 00:32:27 2008
@@ -58,12 +58,12 @@
def add_library(self, libname):
# For testing mainly.
if libname.endswith('.la'):
- libname = extract_libtool(libname)
+ found_libname = extract_libtool(libname)
else:
- libname = find_library(libname)
- if not libname:
+ found_libname = find_library(libname)
+ if not found_libname:
raise ValueError("Failed to find library: %r" % (libname, ))
- self._libraries.append(ctypes.cdll.LoadLibrary(libname))
+ self._libraries.append(ctypes.cdll.LoadLibrary(found_libname))
def parse(self):
namespace = self._transformer.parse()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]