Handle default path in Language classes

This commit is contained in:
ines 2017-03-18 12:58:45 +01:00
parent ac4b88cce9
commit 9605cf39cc

View File

@ -279,7 +279,7 @@ class Language(object):
if isinstance(path, basestring):
path = pathlib.Path(path)
if path is True:
path = util.match_best_version(self.lang, '', util.get_data_path())
path = util.get_data_path() / self.lang
self.meta = overrides.get('meta', {})
self.path = path