MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / chrome_cleanup

Function chrome_cleanup

archivebox/util.py:277–286  ·  view source on GitHub ↗

Cleans up any state or runtime files that chrome leaves behind when killed by a timeout or other error

()

Source from the content-addressed store, hash-verified

275 return cmd_args
276
277def chrome_cleanup():
278 """
279 Cleans up any state or runtime files that chrome leaves behind when killed by
280 a timeout or other error
281 """
282
283 from .config import IN_DOCKER
284
285 if IN_DOCKER and lexists("/home/archivebox/.config/chromium/SingletonLock"):
286 remove_file("/home/archivebox/.config/chromium/SingletonLock")
287
288def ansi_to_html(text):
289 """

Callers 3

save_pdfFunction · 0.85
save_domFunction · 0.85
save_screenshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected