mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Merge pull request #1880 from radarhere/access
Added check for executable permissions to ImageShow
This commit is contained in:
commit
5afa5532f8
|
@ -139,8 +139,7 @@ else:
|
|||
return None
|
||||
for dirname in path.split(os.pathsep):
|
||||
filename = os.path.join(dirname, executable)
|
||||
if os.path.isfile(filename):
|
||||
# FIXME: make sure it's executable
|
||||
if os.path.isfile(filename) and os.access(filename, os.X_OK):
|
||||
return filename
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user