fix firefox path on windows to allow profiles to be specified by name

This commit is contained in:
Matthew Broadway 2021-06-03 23:10:28 +01:00
parent 3096927ce0
commit 2ccfd900f1
No known key found for this signature in database
GPG Key ID: DDC0B82B6896B381

View File

@ -104,7 +104,7 @@ def _firefox_browser_dir():
if sys.platform in ('linux', 'linux2'):
return os.path.expanduser('~/.mozilla/firefox')
elif sys.platform == 'win32':
return os.path.expandvars(r'%APPDATA%\Mozilla\Firefox')
return os.path.expandvars(r'%APPDATA%\Mozilla\Firefox\Profiles')
elif sys.platform == 'darwin':
return os.path.expanduser('~/Library/Application Support/Firefox')
else: