src/eric7/DataViews/PyCoverageDialog.py

branch
eric7
changeset 9238
a7cbf3d61498
parent 9221
bf71ee032bb4
child 9264
18a7312cfdb3
child 9413
80c06d472826
equal deleted inserted replaced
9237:03c714bd4ebf 9238:a7cbf3d61498
418 Private slot to generate a LCOV report of the shown data. 418 Private slot to generate a LCOV report of the shown data.
419 """ 419 """
420 from EricWidgets import EricPathPickerDialog 420 from EricWidgets import EricPathPickerDialog
421 from EricWidgets.EricPathPicker import EricPathPickerModes 421 from EricWidgets.EricPathPicker import EricPathPickerModes
422 422
423 filename, ok = EricPathPickerDialog.getPath( 423 filename, ok = EricPathPickerDialog.getStrPath(
424 self, 424 self,
425 self.tr("LCOV Report"), 425 self.tr("LCOV Report"),
426 self.tr("Enter the path of the output file:"), 426 self.tr("Enter the path of the output file:"),
427 mode=EricPathPickerModes.SAVE_FILE_ENSURE_EXTENSION_MODE, 427 mode=EricPathPickerModes.SAVE_FILE_ENSURE_EXTENSION_MODE,
428 path=os.path.join(os.path.dirname(self.cfn), "coverage.lcov"), 428 strPath=os.path.join(os.path.dirname(self.cfn), "coverage.lcov"),
429 defaultDirectory=os.path.dirname(self.cfn), 429 defaultDirectory=os.path.dirname(self.cfn),
430 filters=self.tr("LCOV Files (*.lcov);;All Files (*)"), 430 filters=self.tr("LCOV Files (*.lcov);;All Files (*)"),
431 ) 431 )
432 if ok: 432 if ok:
433 cover, files = self.__prepareReportGeneration() 433 cover, files = self.__prepareReportGeneration()

eric ide

mercurial