Change call to app_path() to reflect latest changes when retrieving WX locales in frozen application. #309

This commit is contained in:
Manuel Cortez 2019-10-03 17:17:36 -05:00
parent 6af39c6a2f
commit a58187e5f7

View File

@ -4,6 +4,7 @@ import wx.adv
import paths
import languageHandler
import sys
import os
toolkit = "wx"
@ -119,7 +120,7 @@ class mainLoopObject(wx.App):
if not wxLang and '_' in lang:
wxLang=self.lc.FindLanguageInfo(lang.split('_')[0])
if hasattr(sys,'frozen'):
self.lc.AddCatalogLookupPathPrefix(paths.app_path("locales"))
self.lc.AddCatalogLookupPathPrefix(os.path.join(paths.app_path(), "locales"))
if wxLang:
self.lc.Init(wxLang.Language)