Fix gettext not supporting Pathlib yet

This commit is contained in:
Philipp Hörist 2018-10-07 12:49:50 +02:00
parent f10f7d27ad
commit aa50da05d3
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ if os.name == 'nt':
# Search for the translation in all locale dirs
for dir_ in iter_locale_dirs():
try:
_translation = gettext.translation(DOMAIN, dir_)
_translation = gettext.translation(DOMAIN, str(dir_))
_ = _translation.gettext
except OSError:
continue