title: Node.js (npm) refuses to find python even after %PYTHON% has been set
body: <p>So I am trying to get the Node.js to work. Of course, it's not as easy as advertised :)</p>
  
  <p>I happen to have two python versions on my computer, but Node.js seems to only work with the older one, 2.7. Upon error, it also encourages me to set the path into <code>PYTHON</code> environment variable with this error:</p>
  
  <pre><code>Error: Can't find Python executable "python2.7", you can set the PYTHON env variable.
  </code></pre>
  
  <p>Ok then, I configured the variable as desired:</p>
  
  <pre><code>C:\Users\Jakub&gt;set PYTHON=C:\MYSELF\Programs\Python2.7\python.exe
  
  C:\Users\Jakub&gt;echo %PYTHON%
  C:\MYSELF\Programs\Python2.7\python.exe
  </code></pre>
  
  <p>You can see that I used <code>echo</code> to check whether the variable was really set. Unfortunatelly, that <code>npm</code> thing can't read it and the error appears again. Here's the full log right after I set the <code>%PYTHON%</code> variable:</p>
  
  <pre><code>C:\Users\Jakub&gt;npm install minecraft-protocol
  \
  
  
  &gt; ursa@0.8.5 install C:\Users\Jakub\node_modules\minecraft-protocol\node_modules\ursa
  &gt; node-gyp rebuild
  
  |
  C:\Users\Jakub\node_modules\minecraft-protocol\node_modules\ursa&gt;if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\no
  de_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild)
  gyp ERR! configure error
  gyp ERR! stack Error: Can't find Python executable "python2.7", you can set the PYTHON env variable.
  gyp ERR! stack     at failNoPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
  gyp ERR! stack     at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
  gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.&lt;anonymous&gt;:95:15)
  </code></pre>