equal
deleted
inserted
replaced
109 self.buildpath = args[1] |
109 self.buildpath = args[1] |
110 |
110 |
111 def CreateApplication(self): |
111 def CreateApplication(self): |
112 if os.path.exists("BEREMIZ_DEBUG"): |
112 if os.path.exists("BEREMIZ_DEBUG"): |
113 __builtin__.__dict__["BMZ_DBG"] = True |
113 __builtin__.__dict__["BMZ_DBG"] = True |
114 else : |
114 else: |
115 __builtin__.__dict__["BMZ_DBG"] = False |
115 __builtin__.__dict__["BMZ_DBG"] = False |
116 |
116 |
117 global wxversion, wx |
117 global wxversion, wx |
118 import wxversion |
118 import wxversion |
119 wxversion.select(['2.8', '3.0']) |
119 wxversion.select(['2.8', '3.0']) |
158 if self.updateinfo_url is not None: |
158 if self.updateinfo_url is not None: |
159 updateinfo = _("Fetching %s") % self.updateinfo_url |
159 updateinfo = _("Fetching %s") % self.updateinfo_url |
160 |
160 |
161 def updateinfoproc(): |
161 def updateinfoproc(): |
162 global updateinfo |
162 global updateinfo |
163 try : |
163 try: |
164 import urllib2 |
164 import urllib2 |
165 updateinfo = urllib2.urlopen(self.updateinfo_url,None).read() |
165 updateinfo = urllib2.urlopen(self.updateinfo_url,None).read() |
166 except : |
166 except: |
167 updateinfo = _("update info unavailable.") |
167 updateinfo = _("update info unavailable.") |
168 |
168 |
169 from threading import Thread |
169 from threading import Thread |
170 self.splash.SetText(text=updateinfo) |
170 self.splash.SetText(text=updateinfo) |
171 updateinfoThread = Thread(target=updateinfoproc) |
171 updateinfoThread = Thread(target=updateinfoproc) |