Test for executable on a POSIX system
(self, file)
| 65 | |
| 66 | |
| 67 | def _isexec_POSIX(self, file): |
| 68 | """ |
| 69 | Test for executable on a POSIX system |
| 70 | """ |
| 71 | if os.access(file.path, os.X_OK): |
| 72 | # will fail on maxOS if access is not X_OK |
| 73 | return file.is_file() |
| 74 | return False |
| 75 | |
| 76 | |
| 77 |