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 @@
-
-
+
-
+
@@ -160,14 +159,6 @@
1716649644053
-
-
- 1716703226467
-
-
-
- 1716703226467
-
1716703504436
@@ -552,7 +543,15 @@
1720536373622
-
+
+
+ 1720538001095
+
+
+
+ 1720538001096
+
+
@@ -567,7 +566,6 @@
-
@@ -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):