mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
2.5.5 修复小问题
This commit is contained in:
parent
c417555ebf
commit
1f60b2b833
@ -275,8 +275,8 @@ def _get_chrome_path(ini_path: str = None,
|
||||
import winreg
|
||||
try:
|
||||
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE,
|
||||
# r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe',
|
||||
r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon\version',
|
||||
r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe',
|
||||
# r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon\version',
|
||||
reserved=0, access=winreg.KEY_READ)
|
||||
k = winreg.EnumValue(key, 0)
|
||||
winreg.CloseKey(key)
|
||||
|
@ -219,6 +219,8 @@ class SessionPage(BasePage):
|
||||
def download(self) -> DownloadKit:
|
||||
if self._download_kit is None:
|
||||
self._download_kit = DownloadKit(session=self.session, timeout=self.timeout)
|
||||
self._download_kit.retry = self.retry_times
|
||||
self._download_kit.interval = self.retry_interval
|
||||
|
||||
return self._download_kit
|
||||
|
||||
|
2
setup.py
2
setup.py
@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
|
||||
|
||||
setup(
|
||||
name="DrissionPage",
|
||||
version="2.5.4",
|
||||
version="2.5.5",
|
||||
author="g1879",
|
||||
author_email="g1879@qq.com",
|
||||
description="A module that integrates selenium and requests session, encapsulates common page operations.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user