mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-03 11:07:01 -04:00
clean up Browser dirs and add flags_location
This commit is contained in:
parent
a8430baf1b
commit
016367bc46
1 changed files with 3 additions and 2 deletions
|
@ -137,9 +137,10 @@ class Browser:
|
|||
# these can raise exceptions
|
||||
self.chrome_port = self._find_available_port()
|
||||
self._work_dir = tempfile.TemporaryDirectory()
|
||||
data_dir = os.path.join(self._work_dir.name, "chrome-user-data")
|
||||
flags_location = os.path.join(data_dir, "Local State")
|
||||
if cookie_db is not None:
|
||||
cookie_dir = os.path.join(
|
||||
self._work_dir.name, "chrome-user-data", "Default")
|
||||
cookie_dir = os.path.join(data_dir, "Default")
|
||||
cookie_location = os.path.join(cookie_dir, "Cookies")
|
||||
self.logger.debug(
|
||||
"cookie DB provided, writing to %s", cookie_location)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue