mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-18 16:40:41 -06:00
Change call to app_path() to reflect latest changes when retrieving WX locales in frozen application. #309
This commit is contained in:
parent
6af39c6a2f
commit
a58187e5f7
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user