"AttributeError: 'module' object has no attribute 'argv'" when using Python.h
<p>When messing around with Python.h I got this error:  </p>

<pre><code>AttributeError: 'module' object has no attribute 'argv'
</code></pre>

<p>C++ code:  </p>

<pre><code>#include "stdafx.h"  
#include "C:/Python27/include/Python.h"  
#include &lt;iostream&gt;  

using namespace std;  


int main()  
{
    Py_Initialize();
    PyRun_SimpleString("import sys\nprint sys.argv[0]");
}
</code></pre>

<p>Which in Python is:</p>

<pre><code>import sys
print sys.argv[0]
</code></pre>

<p>What am I missing?</p>
