mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-08 22:42:32 -04:00
clean up Browser dirs and add flags_location
This commit is contained in:
parent
dd4fce8763
commit
4dfda90df2
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ class Browser:
|
||||||
self.chrome_port = self._find_available_port()
|
self.chrome_port = self._find_available_port()
|
||||||
self._work_dir = tempfile.TemporaryDirectory()
|
self._work_dir = tempfile.TemporaryDirectory()
|
||||||
data_dir = os.path.join(self._work_dir.name, "chrome-user-data")
|
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:
|
if cookie_db is not None:
|
||||||
cookie_dir = os.path.join(data_dir, "Default")
|
cookie_dir = os.path.join(data_dir, "Default")
|
||||||
cookie_location = os.path.join(cookie_dir, "Cookies")
|
cookie_location = os.path.join(cookie_dir, "Cookies")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue