BasicTools.Helpers.which module

BasicTools.Helpers.which.CheckIntegrity()[source]
BasicTools.Helpers.which.which(program: str) str | None[source]

Check if an executable is reachable and return the real “executable” (with the .exe or .bat )

inspiration from:

https://stackoverflow.com/questions/377017/test-if-executable-exists-in-python

Parameters:

program (str) – the name of the programe to find, in windows the user can omit the .exe or the .bat extentions

Returns:

return the string of the real executable or None if the executable is not found

Return type:

Union[str,None]