Skip to content

Commit

Permalink
set chromedriver permissions to 755 0o755 in after downloading+unzip …
Browse files Browse the repository at this point in the history
…to ensure correctly changed on linux
  • Loading branch information
LucasFaudman committed Jun 26, 2024
1 parent f0a35ed commit 163d2e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
version = "1.0.1"
version = "1.0.2"
authors = [{name = "Lucas Faudman", email = "lucasfaudman@gmail.com"}]
dynamic = ["classifiers"]
name = "souperscraper"
Expand Down
8 changes: 4 additions & 4 deletions src/souperscraper/getchromedriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def try_make_executable(executable_path: Path):
"""
try:
print(f"Making {executable_path} executable...")
executable_path.chmod(executable_path.stat().st_mode | X_OK)
executable_path.chmod(0o755)
except Exception as e:
print(f"Failed to make {executable_path} executable. Error: {e}")

Expand Down Expand Up @@ -152,9 +152,9 @@ def get_chromedriver() -> Optional[Path]:
print("Success. Chromedriver executable downloaded and saved to:\n", executable_path)

if not try_make_executable(executable_path):
print("Failed to make chromedriver executable. You may need to do this manually.")
print("To make the chromedriver executable, run the following command:")
print(f"chmod +x {executable_path}")
print("\nFailed to make chromedriver executable. You may need to do this manually.")
print("\nTo make the chromedriver executable, run the following command:")
print(f"chmod +x {executable_path}\n")
else:
print("Chromedriver is now executable.")

Expand Down

0 comments on commit 163d2e5

Please sign in to comment.