when given base on cmdline, get abspath

This commit is contained in:
Damien Elmes 2013-03-12 09:24:46 +09:00
parent 6483b79045
commit 616e731e34

View File

@ -57,7 +57,10 @@ class ProfileManager(object):
def __init__(self, base=None, profile=None):
self.name = None
# instantiate base folder
self.base = base or self._defaultBase()
if base:
self.base = os.path.abspath(base)
else:
self.base = self._defaultBase()
self.ensureLocalFS()
self.ensureBaseExists()
# load metadata