Added version attribute.
authorMichel Zou <xantares09@hotmail.com>
Thu, 31 Jan 2013 20:23:43 +0000 (21:23 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 4 Feb 2013 11:45:59 +0000 (12:45 +0100)
bindings/ftdi1.i

index 728a91b..ba9aca2 100644 (file)
@@ -2,6 +2,7 @@
 
 %module(docstring="Python interface to libftdi1") ftdi1
 %feature("autodoc","1");
+
 #ifdef DOXYGEN
 %include "ftdi1_doc.i"
 #endif
@@ -129,3 +130,7 @@ PyObject* convertString( const char *v, Py_ssize_t len )
 %{
 #include <ftdi_i.h>
 %}
+
+%pythoncode %{
+__version__ = get_library_version().version_str
+%}