title: How exactly is Python2's sys.path set in Windows?
body: <p>The <a href="http://docs.python.org/library/sys.html#sys.path" rel="nofollow">Python documentation</a> says that <code>sys.path</code> is "Initialized from the environment variable <code>PYTHONPATH</code>, plus an installation-dependent default."</p>
  
  <p>But what is the "installation-dependent default" exactly for Windows?</p>
  
  <p>(I know this is probably dependent on how python was compiled, but if all I have is the binary, is there any way to figure out how the default <code>sys.path</code> is constructed?)</p>
  
  <p><strong>Clarification</strong>:
  I am not asking "What is my <code>sys.path</code>?".  I want to know "how does Python construct sys.path?"  Documentation says that <code>sys.path</code> is constructed with <code>sys.path[0]</code> being the script's current directory, plus whatever Python finds in the <code>PYTHONPATH</code> environment variable, plus some installation-dependent voodoo.  So what is this mysterious voodoo part?</p>