From c5b7819590afdcc5c005d3ec8573e69f967ef637 Mon Sep 17 00:00:00 2001 From: janinainfa <60750633+janinainfa@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:12:13 +0200 Subject: [PATCH] fixed reading config --- .idea/workspace.xml | 27 +++++++++++++-------------- mex_functions.py | 4 ++-- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 85779be..ca7d0d9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,9 @@ - @@ -592,6 +590,7 @@ - \ No newline at end of file diff --git a/mex_functions.py b/mex_functions.py index ed6d717..92c95e2 100644 --- a/mex_functions.py +++ b/mex_functions.py @@ -1,5 +1,5 @@ import configparser - +import os import sounddevice as sd import speech_recognition as sr import soundfile as sf @@ -49,7 +49,7 @@ def printText(text, window): def loadConfig(): config = configparser.ConfigParser() - config.read("~/mex-assistant/config.ini") + config.read(os.path.expanduser("~") + "/mexassistant/config.ini") return config def openDialog(message, dialogType):