Update Jarvis2_4windows.py
This commit is contained in:
parent
0d19e93b3c
commit
59fab95aae
@ -20,7 +20,7 @@ voices = engine.getProperty("voices")
|
|||||||
engine.setProperty("voice", voices[0].id)
|
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():
|
def search_engine_selector():
|
||||||
if config['DEFAULT']['search_engine'] == 'Google':
|
if config['DEFAULT']['search_engine'] == 'Google':
|
||||||
return "https://www.google.com"
|
return "https://www.google.com"
|
||||||
@ -230,7 +230,7 @@ def main():
|
|||||||
if os.path.isfile('./config.ini'): # Checks if config.ini exists.
|
if os.path.isfile('./config.ini'): # Checks if config.ini exists.
|
||||||
config = configparser.ConfigParser() # if exists loads library.
|
config = configparser.ConfigParser() # if exists loads library.
|
||||||
config.read('config.ini') # and also the file.
|
config.read('config.ini') # and also the file.
|
||||||
main() # Then launchs the main program
|
main() # Then it launches the main program
|
||||||
else:
|
else:
|
||||||
# if it doesn't exist it drops an error message and exits.
|
# if it doesn't exist it drops an error message and exits.
|
||||||
print('You need a config.ini file.')
|
print('You need a config.ini file.')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user