title: Fabfile path problem on windows
body: <p>I'm trying to deploy my site using Fabric and Mercurial. In the Windows command line, running <code>hg push</code> works perfectly with no problems. </p>
  
  <p>But when I try writing </p>
  
  <pre><code>local("hg push")
  </code></pre>
  
  <p>in a fabfile and running it, I get the error: </p>
  
  <pre><code>'"hg push"' is not recognized as an internal or external command, operable program or batch file. 
  </code></pre>
  
  <p>Googling gave me an idea that it might be a problem with the <code>PATH</code> variable in Python subprocesses, for example here: <a href="https://stackoverflow.com/questions/283431/why-would-an-command-not-recognized-error-occur-only-when-a-window-is-populated">Why would an &quot;command not recognized&quot; error occur only when a window is populated?</a>.</p>
  
  <p>Can you help me out? Is the bug in Fabric or in my own code?</p>
  
  <p>Thanks.</p>