'Return the version of the etcd library.
.. note::
python-etcd has no __version__. This is a workaround.'

def driver_version(self):

    try:
        import pip.commands.freeze
        for x in pip.commands.freeze.freeze():
            if x.startswith(u'python-etcd'):
                return x.split(u'==')[1]
    except (ImportError, IndexError):
        logger.warn(u'Unable    to    find    the    python-etcd    version.')
        return u'Unknown'
