50 rev = pipe.communicate()[0] |
50 rev = pipe.communicate()[0] |
51 if pipe.returncode != 0: |
51 if pipe.returncode != 0: |
52 rev = None |
52 rev = None |
53 except: |
53 except: |
54 pass |
54 pass |
55 |
55 |
56 # if this is not mercurial repository |
56 # if this is not mercurial repository |
57 # try to read revision from file |
57 # try to read revision from file |
58 if rev is None: |
58 if rev is None: |
59 try: |
59 try: |
60 f = open(os.path.join(app_dir,"revision")) |
60 f = open(os.path.join(app_dir,"revision")) |
67 import wx |
67 import wx |
68 info = wx.AboutDialogInfo() |
68 info = wx.AboutDialogInfo() |
69 |
69 |
70 info.Name = "Beremiz" |
70 info.Name = "Beremiz" |
71 info.Version = app_version |
71 info.Version = app_version |
72 |
72 |
73 info.Copyright = "(C) 2016 Andrey Skvortsov\n" |
73 info.Copyright = "(C) 2016 Andrey Skvortsov\n" |
74 info.Copyright += "(C) 2008-2015 Eduard Tisserant\n" |
74 info.Copyright += "(C) 2008-2015 Eduard Tisserant\n" |
75 info.Copyright += "(C) 2008-2015 Laurent Bessard" |
75 info.Copyright += "(C) 2008-2015 Laurent Bessard" |
76 |
76 |
77 info.WebSite = ("http://beremiz.org", "beremiz.org") |
77 info.WebSite = ("http://beremiz.org", "beremiz.org") |
78 |
78 |
79 info.Description = _("Open Source framework for automation, " |
79 info.Description = _("Open Source framework for automation, " |
80 "implemented IEC 61131 IDE with constantly growing set of extensions " |
80 "implemented IEC 61131 IDE with constantly growing set of extensions " |
81 "and flexible PLC runtime.") |
81 "and flexible PLC runtime.") |
82 |
82 |
83 info.Developers = ("Andrey Skvortsov <andrej.skvortzov@gmail.com>", |
83 info.Developers = ("Andrey Skvortsov <andrej.skvortzov@gmail.com>", |
84 "Sergey Surkov <surkov.sv@summatechnology.ru>", |
84 "Sergey Surkov <surkov.sv@summatechnology.ru>", |
85 "Edouard Tisserant <edouard.tisserant@gmail.com>", |
85 "Edouard Tisserant <edouard.tisserant@gmail.com>", |
86 "Laurent Bessard <laurent.bessard@gmail.com>") |
86 "Laurent Bessard <laurent.bessard@gmail.com>") |
87 |
87 |