Michael Wu flamingice@sourmilk.net writes:
Would passing an empty path (eg. ".") to the function solve the problem? SearchPath does a lot of what spawn needs to find the real filename, and I'd like to avoid duplicating what SearchPath does.
If all you need is to append ".exe" calling SearchPath doesn't seem necessary at all.