Using os.path.splitext to obtain executable
Merge pull request #2 from nicoddemus/patch-2

Using os.path.splitext to obtain executable