Find a specific file, or find all executable files within the system path
I could have just used the function which(), offered by shutil. Documented here.

Example:

&gt;&gt;&gt; from shutil import which
&gt;&gt;&gt; which('python')
'C:\Python35\python.exe'