From e63b79ce9623ff460a034985855630270d3c7850 Mon Sep 17 00:00:00 2001 From: dougollerenshaw Date: Thu, 10 Oct 2024 16:55:07 -0700 Subject: [PATCH] Modify how we deal with paths for icons --- codeaide/ui/chat_window.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/codeaide/ui/chat_window.py b/codeaide/ui/chat_window.py index 97d9776..6af37a1 100644 --- a/codeaide/ui/chat_window.py +++ b/codeaide/ui/chat_window.py @@ -46,6 +46,7 @@ from scipy.io import wavfile import whisper import tempfile +from codeaide.utils.general_utils import get_resource_path class AudioRecorder(QThread): @@ -139,12 +140,8 @@ def __init__(self, chat_handler): self.is_recording = False # Load microphone icons - self.green_mic_icon = QIcon( - general_utils.get_resource_path("codeaide/assets/green_mic.png") - ) - self.red_mic_icon = QIcon( - general_utils.get_resource_path("codeaide/assets/red_mic.png") - ) + self.green_mic_icon = QIcon(get_resource_path("assets/green_mic.png")) + self.red_mic_icon = QIcon(get_resource_path("assets/red_mic.png")) self.setup_ui() self.setup_input_placeholder()