From 145250c1513a2f5a92339fe42af049de0ed792fb Mon Sep 17 00:00:00 2001 From: zhyim Date: Tue, 11 Jul 2023 14:12:23 +0800 Subject: [PATCH] sync win32 download function --- ElectronJS/update_chrome.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ElectronJS/update_chrome.py b/ElectronJS/update_chrome.py index 6eb0f1a..aedc92e 100644 --- a/ElectronJS/update_chrome.py +++ b/ElectronJS/update_chrome.py @@ -175,6 +175,8 @@ if __name__ == "__main__": "./chromedrivers/chromedriver.exe", "./chrome_win64/chromedriver_win64.exe", ) + finally: + shutil.rmtree("./chromedrivers") elif sys.platform == "linux" and platform.architecture()[0] == "64bit": pass elif sys.platform == "darwin" and platform.architecture()[0] == "64bit":