diff options
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/python/qpid/util.py b/qpid/python/qpid/util.py index fb343b536a..41c5852d14 100644 --- a/qpid/python/qpid/util.py +++ b/qpid/python/qpid/util.py @@ -17,7 +17,7 @@ # under the License. # -import os, socket, time, textwrap, re, sys, pkg_resources +import os, socket, time, textwrap, re, sys try: from ssl import wrap_socket as ssl @@ -51,6 +51,7 @@ def get_client_properties_with_defaults(provided_client_properties={}, version_p pass try: + import pkg_resources pkg = pkg_resources.require("qpid-python") version = pkg[0].version if pkg and pkg[0] and pkg[0].version else version except: |
