Skip to content

Commit e4dbcc5

Browse files
committed
Added browser path option
1 parent 0da018a commit e4dbcc5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
timeout = 600
55

66
driver_path = 'auto'
7+
browser_path = 'auto'
78
headless = False
89

910
app_token = 'AT_ABCDEF0123456789abcdef0123456789'

daily_reporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def report(user_index):
2828
print('[Info]', 'Now:', time.asctime(today))
2929

3030
chrome_options = options.Options()
31+
if config.browser_path != 'auto':
32+
chrome_options.binary_location = config.browser_path
3133
if config.headless:
3234
chrome_options.add_argument('--headless')
3335
chrome_options.add_argument('--disable-gpu')

0 commit comments

Comments
 (0)