mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
when given base on cmdline, get abspath
This commit is contained in:
parent
6483b79045
commit
616e731e34
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ class ProfileManager(object):
|
||||||
def __init__(self, base=None, profile=None):
|
def __init__(self, base=None, profile=None):
|
||||||
self.name = None
|
self.name = None
|
||||||
# instantiate base folder
|
# 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.ensureLocalFS()
|
||||||
self.ensureBaseExists()
|
self.ensureBaseExists()
|
||||||
# load metadata
|
# load metadata
|
||||||
|
|
Loading…
Reference in a new issue