From 9deb9a2e2d319c3f9c052e647bccc2fb32457287 Mon Sep 17 00:00:00 2001 From: Mohaned Abd Elmonsef <6644557+mo0haned@users.noreply.github.com> Date: Thu, 27 Aug 2020 21:25:46 +0200 Subject: [PATCH] Update electron.py In windows, Electron is not in PATH by default. So, which will not work and it makes an error --- eel/electron.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eel/electron.py b/eel/electron.py index 7a443025..a1d98f65 100644 --- a/eel/electron.py +++ b/eel/electron.py @@ -13,9 +13,7 @@ def run(path, options, start_urls): def find_path(): if sys.platform in ['win32', 'win64']: - # It doesn't work well passing the .bat file to Popen, so we get the actual .exe - bat_path = wch.which('electron') - return os.path.join(bat_path, r'..\node_modules\electron\dist\electron.exe') + return r'..\node_modules\electron\dist\electron.exe' elif sys.platform in ['darwin', 'linux']: # This should work find... return wch.which('electron')