Comment 3 for bug 951197

Revision history for this message
Johannes Erdfelt (johannes.erdfelt) wrote :

The change doesn't handle the case where cfg.py imports other modules from openstack/common which aren't installed yet either. This is the case with the new iniparser.py module that I recently got merged.

As a workaround so I can get my changes into nova, I hacked update.py to use this code:

try:
    from openstack.common import cfg
except AttributeError:
    try:
        sys.path.insert(0, '.')
        from openstack.common import cfg
    finally:
        sys.path.pop(0)