Skip to content

Commit

Permalink
Delete geckodriver.log automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jan 31, 2021
1 parent db7745f commit 28c8e02
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,6 +1,5 @@
sites
pomace.yml
geckodriver.log

# Temporary Python files
*.pyc
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pomace/utils.py
Expand Up @@ -41,6 +41,11 @@ def quit_browser(*, silence_logging: bool = False) -> bool:
else:
did_quit = True

logfile = Path("geckodriver.log")
if logfile.exists():
log.debug(f"Deleting {logfile}")
logfile.unlink()

return did_quit


Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
@@ -1,7 +1,7 @@
[tool.poetry]

name = "pomace"
version = "0.6.10"
version = "0.6.11"
description = "Dynamic page objects for browser automation."

license = "MIT"
Expand Down Expand Up @@ -51,7 +51,7 @@ splinter = "~0.14.0"
webdriver_manager = "^2.5.0"

# Persistence
datafiles = "~0.11.1"
datafiles = "~0.12b4"
gitman = "^2.3b2"
parse = "^1.14.0"

Expand Down

0 comments on commit 28c8e02

Please sign in to comment.