Check if a program exists from a python script
<p>How do I check if a program exists from a python script?</p>

<p>Let's say you want to check if <code>wget</code> or <code>curl</code> are available. We'll assume that they should be in path.</p>

<p>It would be the best to see a multiplatform solution but for the moment, Linux is enough.</p>

<p>Hints: </p>

<ul>
<li>running the command and checking for return code is not always enough as some tools do return non 0 result even when you try <code>--version</code>. </li>
<li>nothing should be visible on screen when checking for the command</li>
</ul>

<p>Also, I would appreciate a solution that that is more general, like <code>is_tool(name)</code></p>
