Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
print(".lnk file doesn't exist")
return False
shell = win32com.client.Dispatch("WScript.Shell")
browserpath = shell.CreateShortCut(browserpath)
browserpath=browserpath.Targetpath
eel.browsers.set_path('chrome', browserpath)
About()
print("Launched using: "+browserpath)
eel.start('main.html', mode='chrome', size=(800, 720))
elif os.path.exists(chromiumpath):
eel.browsers.set_path('chrome', chromiumpath)
About()
print("Launched using: "+chromiumpath)
eel.start('main.html', mode='chrome', size=(800, 720))
elif os.path.exists(chromiumpath_alt):
eel.browsers.set_path('chrome', chromiumpath_alt)
About()
print("Launched using: "+chromiumpath_alt)
eel.start('main.html', mode='chrome', size=(800, 720))
elif os.path.exists(slimpath):
eel.browsers.set_path('chrome', slimpath)
About()
print("Launched using: "+slimpath)
eel.start('main.html', mode='chrome', size=(800, 720))
elif os.path.exists(slimpath_alt):
eel.browsers.set_path('chrome', slimpath_alt)
About()
print("Launched using: "+slimpath_alt)
eel.start('main.html', mode='chrome', size=(800, 720))
else:
try:
About()
def show(*start_urls):
brw.open(start_urls, _start_args)