Update Jarvis2_4windows.py

This commit is contained in:
TallGorilla 2021-10-07 16:11:28 +02:00
parent 0d19e93b3c
commit 59fab95aae

View File

@ -20,7 +20,7 @@ voices = engine.getProperty("voices")
engine.setProperty("voice", voices[0].id)
# this funcition checks wich search engine is selected in config file.
# this funcition checks which search engine is selected in config file.
def search_engine_selector():
if config['DEFAULT']['search_engine'] == 'Google':
return "https://www.google.com"
@ -230,7 +230,7 @@ def main():
if os.path.isfile('./config.ini'): # Checks if config.ini exists.
config = configparser.ConfigParser() # if exists loads library.
config.read('config.ini') # and also the file.
main() # Then launchs the main program
main() # Then it launches the main program
else:
# if it doesn't exist it drops an error message and exits.
print('You need a config.ini file.')