From e15345abbb5bfc4492a93551bc030e530f43f179 Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Thu, 31 Jan 2013 21:23:43 +0100 Subject: [PATCH] Added version attribute. --- bindings/ftdi1.i | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/bindings/ftdi1.i b/bindings/ftdi1.i index 728a91b..ba9aca2 100644 --- a/bindings/ftdi1.i +++ b/bindings/ftdi1.i @@ -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 %} + +%pythoncode %{ +__version__ = get_library_version().version_str +%} -- 1.7.1