summaryrefslogtreecommitdiff
path: root/swiftclient/__init__.py
blob: d839a91da7a1c469c16fea5ea2dbac21b0637e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- encoding: utf-8 -*-
""""
OpenStack Swift Python client binding.
"""
from client import *

# At setup.py time, we haven't installed anything yet, so there
# is nothing that is able to set this version property. Squelching
# that exception here should be fine- if there are problems with
# pkg_resources in a real install, that will manifest itself as
# an error still
try:
    from swiftclient import version

    __version__ = version.version_info.cached_version_string()
except Exception:
    pass