Muscat.Helpers.IO.Which module¶
- Which(program: str) str [source]¶
Check if an executable is reachable and return the real “executable” (with the .exe or .bat )
- Parameters:
program (str) – the name of the program to find, in windows the user can omit the .exe or the .bat extension
- Returns:
return the string of the real executable or and empty string if the executable is not found
- Return type:
str