MCPcopy Index your code
hub / github.com/PlayOnLinux/POL-POM-4 / analyseReal

Method analyseReal

python/debug.py:211–236  ·  view source on GitHub ↗
(self, parent, selection)

Source from the content-addressed store, hash-verified

209 self.analyseReal(parent, selection)
210
211 def analyseReal(self, parent, selection):
212 self.ShowLogFile()
213 try:
214 if(parent == 0):
215 checkfile = Variables.playonlinux_rep+"wineprefix/"+selection+"/playonlinux.log"
216 self.logfile = open(checkfile, 'r')
217 self.logsize = os.path.getsize(checkfile)
218 self.logname = selection
219 self.initLogDisplay()
220 self.logtype = 0
221 self.reportProblem.Hide()
222
223 if(parent == 1):
224 checkfile = Variables.playonlinux_rep+"logs/"+selection+"/"+selection+".log"
225 self.logfile = open(checkfile, 'r')
226 self.logsize = os.path.getsize(checkfile)
227 self.logname = selection
228 self.initLogDisplay()
229 self.logtype = 1
230 if(os.environ["DEBIAN_PACKAGE"] == "FALSE"):
231 self.reportProblem.Show()
232 self.reportProblem.Enable(True)
233 self.reportProblem.SetLabel(_("Report a problem about {0}").format(self.logname))
234
235 except:
236 pass
237
238 def initLogDisplay(self):
239 self.throttling = False

Callers 4

__init__Method · 0.95
analyseLogMethod · 0.95
RunMethod · 0.80
DebugClickMethod · 0.80

Calls 2

ShowLogFileMethod · 0.95
initLogDisplayMethod · 0.95

Tested by

no test coverage detected