mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
clean up Browser dirs and add flags_location
This commit is contained in:
parent
a8430baf1b
commit
016367bc46
@ -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…
x
Reference in New Issue
Block a user