As whereis look only for executable on linux, this find look for all file type
(afile)
| 112 | |
| 113 | |
| 114 | def find(afile): |
| 115 | """ |
| 116 | As whereis look only for executable on linux, this find look for all file type |
| 117 | """ |
| 118 | for d in os.environ['PATH'].split(PATH_DELIM): |
| 119 | if os.path.isfile(os.path.join(d, afile)): |
| 120 | return d |
| 121 | return None |
| 122 | |
| 123 | |
| 124 | # Try to find openMVG, COLMAP, and openMVS binaries in PATH |