2023-07-22, fix chrome browser not installed on default path error.

master
CHUN YU YAO 2023-07-29 02:03:13 +08:00
parent f2163ae0bf
commit b04aae9def
4 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@ import argparse
import itertools import itertools
import chromedriver_autoinstaller import chromedriver_autoinstaller
CONST_APP_VERSION = "MaxBot (2023.07.21)" CONST_APP_VERSION = "MaxBot (2023.07.22)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
@ -415,7 +415,7 @@ def load_chromdriver_normal(config_dict, driver_type):
chromedriver_path = get_chromedriver_path(webdriver_path) chromedriver_path = get_chromedriver_path(webdriver_path)
if not os.path.exists(chromedriver_path): if not os.path.exists(chromedriver_path):
print("WebDriver not exist, automatically download...") print("WebDriver not exist, try to download...")
chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False) chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False)
if not os.path.exists(chromedriver_path): if not os.path.exists(chromedriver_path):
@ -522,7 +522,7 @@ def load_chromdriver_uc(config_dict):
chromedriver_path = get_chromedriver_path(webdriver_path) chromedriver_path = get_chromedriver_path(webdriver_path)
if not os.path.exists(chromedriver_path): if not os.path.exists(chromedriver_path):
print("WebDriver not exist, automatically download...") print("WebDriver not exist, try to download...")
chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False) chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False)
options = uc.ChromeOptions() options = uc.ChromeOptions()

View File

@ -22,7 +22,7 @@ import base64
import threading import threading
import subprocess import subprocess
CONST_APP_VERSION = "MaxBot (2023.07.21)" CONST_APP_VERSION = "MaxBot (2023.07.22)"
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json" CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"

View File

@ -34,7 +34,7 @@ warnings.simplefilter('ignore',InsecureRequestWarning)
import ssl import ssl
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = "MaxBot (2023.07.21)" CONST_APP_VERSION = "MaxBot (2023.07.22)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"

View File

@ -28,7 +28,7 @@ import asyncio
import tornado import tornado
from tornado.web import Application from tornado.web import Application
CONST_APP_VERSION = "MaxBot (2023.07.21)" CONST_APP_VERSION = "MaxBot (2023.07.22)"
CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt" CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"