Merge "Make sure the loadables path is the absolute path"

This commit is contained in:
Jenkins 2012-12-28 23:28:36 +00:00 committed by Gerrit Code Review
commit ad1165788a

View File

@ -49,7 +49,7 @@ from nova.openstack.common import importutils
class BaseLoader(object):
def __init__(self, loadable_cls_type):
mod = sys.modules[self.__class__.__module__]
self.path = mod.__path__[0]
self.path = os.path.abspath(mod.__path__[0])
self.package = mod.__package__
self.loadable_cls_type = loadable_cls_type