From 66f62480f3b19a549d05967b36c24ac8e396acb0 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 20 Jan 2021 13:34:53 -0800 Subject: [PATCH] decode the catalog lookup path if needed --- etg/intl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etg/intl.py b/etg/intl.py index 09a231d4..fa90d93d 100644 --- a/etg/intl.py +++ b/etg/intl.py @@ -61,6 +61,8 @@ def run(): import os _localedir = os.path.join(os.path.dirname(__file__), "locale") if os.path.exists(_localedir): + if isinstance(_localedir, (bytes, bytearray)): + _localedir = _localedir.decode(_sys.getfilesystemencoding()) Locale.AddCatalogLookupPathPrefix(_localedir) del os #----------------------------------------------------------------------------