mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
decode the catalog lookup path if needed
This commit is contained in:
@@ -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
|
||||
#----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user