@@ -272,7 +272,7 @@ def end_class(): # Ends the current session
272272 driver .find_element_by_xpath ("//div[@aria-label='Leave call']" ).click ()
273273
274274 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 )
276276 print (end = '\n \n ' )
277277 time .sleep (3 )
278278 # Returns to the Home Screen
@@ -326,16 +326,16 @@ def exit_now(): # Exits the script
326326
327327 try :
328328 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 )
331331 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 ))
339339 except FileNotFoundError :
340340 print ("Webdriver seems to be outdated, download the LATEST VERSION of AUTOMEET from here: "
341341 "'https://github.com/pixincreate/Automeet/releases/latest'" , end = '\n ' )
0 commit comments