Skip to content

Simplify command discovery with stdlib shutil.which() - #4420

Merged
radarhere merged 1 commit into
python-pillow:masterfrom
jdufresne:which
Feb 14, 2020
Merged

Simplify command discovery with stdlib shutil.which()#4420
radarhere merged 1 commit into
python-pillow:masterfrom
jdufresne:which

Conversation

@jdufresne

Copy link
Copy Markdown
Contributor

Use the builtin shutil.which() instead of reimplementing.

For the single use that used the output of the command, use
subprocess.run().

Comment thread Tests/helper.py Outdated
Use the builtin shutil.which() instead of reimplementing.

For the single use that used the output of the command, use
subprocess.run().
@radarhere
radarhere merged commit 9174a45 into python-pillow:master Feb 14, 2020
@jdufresne
jdufresne deleted the which branch February 14, 2020 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants