(self)
| 28 | return os.path.join(self.getConfigDir(), name) |
| 29 | |
| 30 | def loadDebugLog(self): |
| 31 | jsondata = {} |
| 32 | filename = self.getConfigFile() |
| 33 | if os.path.isfile(filename): |
| 34 | try: |
| 35 | with open(filename, 'r', encoding='utf8') as f: |
| 36 | jsondata = json.load(f) |
| 37 | except Exception: |
| 38 | pass # FIXME: handle I/O errors? |
| 39 | self.debugLog = copy.deepcopy(jsondata) |
| 40 | return jsondata |
| 41 | |
| 42 | def setStartTimer(self, timerName): |
| 43 | self.startTime[timerName] = time.time() |
no test coverage detected