Skip to content

Commit

Permalink
fixed reading config
Browse files Browse the repository at this point in the history
  • Loading branch information
janinainfa committed Jul 9, 2024
1 parent 1b7ce2f commit c5b7819
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
27 changes: 13 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mex_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import configparser

import os
import sounddevice as sd
import speech_recognition as sr
import soundfile as sf
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit c5b7819

Please sign in to comment.