mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
decode the catalog lookup path if needed
This commit is contained in:
@@ -61,6 +61,8 @@ def run():
|
|||||||
import os
|
import os
|
||||||
_localedir = os.path.join(os.path.dirname(__file__), "locale")
|
_localedir = os.path.join(os.path.dirname(__file__), "locale")
|
||||||
if os.path.exists(_localedir):
|
if os.path.exists(_localedir):
|
||||||
|
if isinstance(_localedir, (bytes, bytearray)):
|
||||||
|
_localedir = _localedir.decode(_sys.getfilesystemencoding())
|
||||||
Locale.AddCatalogLookupPathPrefix(_localedir)
|
Locale.AddCatalogLookupPathPrefix(_localedir)
|
||||||
del os
|
del os
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user