certbot.plugins.util

Plugin utilities.

certbot.plugins.util.path_surgery(cmd)[source]

Attempt to perform PATH surgery to find cmd

Mitigates https://github.com/certbot/certbot/issues/1833

Parameters:cmd (str) – the command that is being searched for in the PATH
Returns:True if the operation succeeded, False otherwise