MCPcopy
hub / github.com/Sathvik-Rao/ClipCascade / _open_logs

Method _open_logs

ClipCascade_Desktop/src/cli/tray.py:274–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

272 subprocess.run(["xdg-open", path])
273
274 def _open_logs(self):
275 log_file_path = os.path.join(get_program_files_directory(), LOG_FILE_NAME)
276 if os.path.exists(log_file_path):
277 try:
278 self.open_location(log_file_path)
279 except Exception as e:
280 CustomDialog(
281 f"Failed to open the log file '{log_file_path}'.\nError: {e}",
282 msg_type="error",
283 ).mainloop()
284 else:
285 CustomDialog(
286 f"Log file not found at '{log_file_path}'.", msg_type="error"
287 ).mainloop()
288
289 def _open_program_location(self):
290 try:

Callers

nothing calls this directly

Calls 4

open_locationMethod · 0.95
CustomDialogClass · 0.90
mainloopMethod · 0.45

Tested by

no test coverage detected