2.5.5 修复小问题

This commit is contained in:
g1879 2022-03-02 11:50:39 +08:00
parent c417555ebf
commit 1f60b2b833
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -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

View File

@ -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.",