Skip to content

refactor: simplify find_executable using shutil.which - #1329

Open
Dor-bl wants to merge 4 commits into
appium:masterfrom
Dor-bl:refactor/simplify-find-executable-14895471279632432151
Open

Dor-bl wants to merge 4 commits into
appium:masterfrom
Dor-bl:refactor/simplify-find-executable-14895471279632432151

Conversation

@Dor-bl

@Dor-bl Dor-bl commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Changes

appium/webdriver/appium_service.py: replace the hand-rolled PATH search in find_executable with shutil.which.
test/unit/webdriver/appium_service_test.py: add a unit test for it.

Testing

pytest test/unit/webdriver/appium_service_test.py: 5 passed.

Replace manual PATH lookup logic in find_executable with shutil.which.
Add corresponding unit test coverage.
Replace manual PATH lookup logic in find_executable with shutil.which.
Add corresponding unit test coverage.
Replace manual PATH lookup logic in find_executable with shutil.which.
Add corresponding unit test coverage.
Replace manual PATH lookup logic in find_executable with shutil.which.
Add corresponding unit test coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant