else :
sys.setdefaultencoding(locale.getpreferredencoding())
#chemin de l'application
-AppliPath = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
+try :
+ AppliPath = sys._MEIPASS
+except :
+ AppliPath = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
#chemin des images
ImagePath = os.path.join(AppliPath, 'images')
#configuration generale
ConfigPath = ConstructConfigPath(UserConfigPath)
-
langues = {'french' : wx.LANGUAGE_FRENCH,
'english' : wx.LANGUAGE_ENGLISH,}
#####################################################################
self.pref.read(self.ConfigPath['preferences'])
if IsNew(self) :
UpgradeConf(self)
+ self.pref.read(self.ConfigPath['preferences'])
New = True
else :
CopyConf(self)
def OnVerif(self, evt) :
pack = CheckRPackages(self)
if pack :
- dlg = wx.MessageDialog(self, u"Installation OK", u"Installation", wx.OK | wx.NO_DEFAULT | wx.ICON_INFORMATION)
+ dlg = wx.MessageDialog(self, u"Installation OK", u"Installation", wx.OK | wx.ICON_INFORMATION)
dlg.CenterOnParent()
if dlg.ShowModal() in [wx.ID_NO, wx.ID_CANCEL]:
evt.Veto()