1
0
Fork 0
mirror of synced 2024-06-29 11:30:46 +12:00

fix chrome data dir in wrong folder

This commit is contained in:
Nick Sweeting 2019-02-04 20:03:16 -08:00
parent 9f5441c4f3
commit 794c043fa4

View file

@ -588,7 +588,7 @@ def chrome_headless(binary=CHROME_BINARY, user_data_dir=CHROME_USER_DATA_DIR):
args = [binary, '--headless'] # '--disable-gpu'
if not CHROME_SANDBOX:
args.append('--no-sandbox')
default_profile = os.path.expanduser('~/Library/Application Support/Google/Chrome/Default')
default_profile = os.path.expanduser('~/Library/Application Support/Google/Chrome')
if user_data_dir:
args.append('--user-data-dir={}'.format(user_data_dir))
elif os.path.exists(default_profile):