X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=iramuteq.py;h=f33bc90f8f5525dfebedb00c715c4b9eb0aa8be1;hp=cf7088a684fd78fbd90146a61e2a67b493cc5727;hb=6f825cfc9779c3fee81ea608b3a4972259d157e1;hpb=e531d59ce2d8f72dfc3138446db913af1f20b134 diff --git a/iramuteq.py b/iramuteq.py index cf7088a..f33bc90 100644 --- a/iramuteq.py +++ b/iramuteq.py @@ -106,7 +106,10 @@ if sys.platform == 'darwin' : 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 @@ -148,7 +151,6 @@ sys.stdout = printer() ConfigPath = ConstructConfigPath(UserConfigPath) - langues = {'french' : wx.LANGUAGE_FRENCH, 'english' : wx.LANGUAGE_ENGLISH,} #####################################################################