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')