Fix the chromedriver auto-repair script

This commit is contained in:
Michael Mintz 2021-08-24 15:13:37 -04:00
parent 2cad9475bb
commit 9928c23f48
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ def _mark_chromedriver_repaired():
abs_path = os.path.abspath(".")
chromedriver_repaired_lock = constants.MultiBrowser.CHROMEDRIVER_REPAIRED
file_path = os.path.join(abs_path, chromedriver_repaired_lock)
downloads_folder = download_helper.get_downloads_folder()
if not os.path.exists(downloads_folder):
os.makedirs(downloads_folder)
out_file = codecs.open(file_path, "w+", encoding="utf-8")
out_file.writelines("")
out_file.close()