(fpath)
| 21 | Copied from http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python/377028#377028 |
| 22 | """ |
| 23 | def is_exe(fpath): |
| 24 | return os.path.isfile(fpath) and os.access(fpath, os.X_OK) |
| 25 | |
| 26 | fpath, fname = os.path.split(program) |
| 27 | if fpath: |