@@ -272,7 +272,7 @@ def end_class(): # Ends the current session
272
272
driver .find_element_by_xpath ("//div[@aria-label='Leave call']" ).click ()
273
273
274
274
double_quotes = "\" "
275
- print (f"{ 'The meeting ' + double_quotes + classTitle + double_quotes + ' ended now.' } \r " , end = '' , flush = True )
275
+ print ("{:<60s}" . format ( f"{ 'The meeting ' + double_quotes + classTitle + double_quotes + ' ended now.' } \r " ) , end = "" , flush = True )
276
276
print (end = '\n \n ' )
277
277
time .sleep (3 )
278
278
# Returns to the Home Screen
@@ -326,16 +326,16 @@ def exit_now(): # Exits the script
326
326
327
327
try :
328
328
try :
329
- # For 64 Bit Brave
330
- options . binary_location = "C: \\ Program Files \\ BraveSoftware \\ Brave-Browser \\ Application \\ brave.exe"
329
+ # For Chrome
330
+ driver = webdriver . Chrome ( executable_path = resource_path ( driverPath ), options = options )
331
331
except WebDriverException :
332
- # For 32 Bit Brave
333
- options . binary_location = "C: \\ Program Files (x86) \\ BraveSoftware \\ Brave-Browser \\ Application \\ brave.exe"
334
- driver = webdriver . Chrome ( options = options , executable_path = resource_path ( driverPath ))
335
- except WebDriverException :
336
- # For Chrome
337
- driver = webdriver . Chrome ( executable_path = resource_path ( driverPath ), options = options )
338
-
332
+ try :
333
+ # For 64 Bit Brave
334
+ options . binary_location = "C: \\ Program Files \\ BraveSoftware \\ Brave-Browser \\ Application \\ brave.exe"
335
+ except WebDriverException :
336
+ # For 32 Bit Brave
337
+ options . binary_location = "C: \\ Program Files (x86) \\ BraveSoftware \\ Brave-Browser \\ Application \\ brave.exe"
338
+ driver = webdriver . Chrome ( options = options , executable_path = resource_path ( driverPath ))
339
339
except FileNotFoundError :
340
340
print ("Webdriver seems to be outdated, download the LATEST VERSION of AUTOMEET from here: "
341
341
"'https://github.com/pixincreate/Automeet/releases/latest'" , end = '\n ' )
0 commit comments