Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion edgedriver_autoinstaller/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ def get_platform_architecture():
platform = 'mac'
architecture = '64'
elif sys.platform.startswith('win'):
import platform as pf
platform = 'win'
architecture = '32'
if pf.architecture()[0][:2] == '64':
architecture = '64'
else:
architecture = '32'
else:
raise RuntimeError('Could not determine edgedriver download URL for this platform.')
return platform, architecture
Expand Down