diff --git a/update.py b/update.py index e76119b..f02d127 100644 --- a/update.py +++ b/update.py @@ -63,16 +63,13 @@ import shutil import sys try: - from openstack import common - cfg = common.cfg + from openstack.common import cfg except AttributeError: - # NOTE(jkoelker) Workaround for LP951197 try: - f, path, description = imp.find_module('openstack/common/cfg') - cfg = imp.load_module('cfg', f, path, description) + sys.path.insert(0, '.') + from openstack.common import cfg finally: - if f is not None: - f.close() + sys.path.pop(0) opts = [ cfg.ListOpt('modules',