Flush the log file to ensure all output is written.
(self)
| 235 | return os.path.join(project_root, "puppet.log") |
| 236 | |
| 237 | def flush_log(self): |
| 238 | """Flush the log file to ensure all output is written.""" |
| 239 | if self.log_file: |
| 240 | try: |
| 241 | self.log_file.flush() |
| 242 | except Exception: |
| 243 | pass |
| 244 | |
| 245 | |
| 246 | class DesktopPuppetWindow(Adw.ApplicationWindow): |