Fix gettext not supporting Pathlib yet

This commit is contained in:
Philipp Hörist 2018-10-07 12:49:50 +02:00
parent a04637105d
commit 488f3c55aa
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 # Search for the translation in all locale dirs
for dir_ in iter_locale_dirs(): for dir_ in iter_locale_dirs():
try: try:
_translation = gettext.translation(DOMAIN, dir_) _translation = gettext.translation(DOMAIN, str(dir_))
_ = _translation.gettext _ = _translation.gettext
except OSError: except OSError:
continue continue