Fix for not all platforms having optional libraries at the proper versions.

This commit is contained in:
Toshio Kuratomi 2014-12-16 09:20:11 -08:00
commit fbadcfd44f
3 changed files with 29 additions and 2 deletions

View file

@ -19,6 +19,17 @@
########################################################
__requires__ = ['ansible']
try:
import pkg_resources
except Exception:
# Use pkg_resources to find the correct versions of libraries and set
# sys.path appropriately when there are multiversion installs. But we
# have code that better expresses the errors in the places where the code
# is actually used (the deps are optional for many code paths) so we don't
# want to fail here.
pass
import os
import sys