애니라이프 추가 및 애니24 수정 2022.09.25
os platform fix
This commit is contained in:
@@ -393,7 +393,7 @@ class LogicAniLife(LogicModuleBase):
|
|||||||
options.add_experimental_option("excludeSwitches", ["enable-automation"])
|
options.add_experimental_option("excludeSwitches", ["enable-automation"])
|
||||||
options.add_experimental_option("useAutomationExtension", False)
|
options.add_experimental_option("useAutomationExtension", False)
|
||||||
|
|
||||||
if LogicAniLife.os_platform == 'Darwin':
|
if LogicAniLife.os_platform == "Darwin":
|
||||||
# 크롬드라이버 경로
|
# 크롬드라이버 경로
|
||||||
driver_path = "./bin/Darwin/chromedriver"
|
driver_path = "./bin/Darwin/chromedriver"
|
||||||
# driver = webdriver.Chrome(executable_path=driver_path, chrome_options=options)
|
# driver = webdriver.Chrome(executable_path=driver_path, chrome_options=options)
|
||||||
@@ -401,8 +401,13 @@ class LogicAniLife(LogicModuleBase):
|
|||||||
ChromeDriverManager().install(), chrome_options=options
|
ChromeDriverManager().install(), chrome_options=options
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
driver_path = f"./bin/{LogicAniLife.os_platform}/chromedriver"
|
driver_bin_path = os.path.join(
|
||||||
driver = webdriver.Chrome(executable_path=driver_path, chrome_options=options)
|
os.path.dirname(__file__), "bin", f"{LogicAniLife.os_platform}"
|
||||||
|
)
|
||||||
|
driver_path = f"{driver_bin_path}/chromedriver"
|
||||||
|
driver = webdriver.Chrome(
|
||||||
|
executable_path=driver_path, chrome_options=options
|
||||||
|
)
|
||||||
|
|
||||||
stealth(
|
stealth(
|
||||||
driver,
|
driver,
|
||||||
|
|||||||
Reference in New Issue
Block a user