Skip to content

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Feb 9, 2023

Resolves #6934

Pillow/setup.py

Lines 245 to 249 in 7e3bed6

def _cmd_exists(cmd):
return any(
os.access(os.path.join(path, cmd), os.X_OK)
for path in os.environ["PATH"].split(os.pathsep)
)

presumes that os.environ contains a "PATH" key.

This PR changes the code no longer raise an error if it doesn't.

Co-authored-by: Hugo van Kemenade <[email protected]>
@hugovk hugovk added the automerge Automatically merge PRs that are ready label Mar 12, 2023
@radarhere radarhere merged commit 5b3d39c into python-pillow:main Mar 12, 2023
@radarhere radarhere deleted the path branch March 12, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge PRs that are ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setup.py build fails without PATH

2 participants