diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index eeb19ef3db..c1543fe16b 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -164,8 +164,16 @@ PyObject* __wxStart(PyObject* /* self */, PyObject* args) // This is the next part of the wxEntry functionality... - wxPythonApp->argc = 0; - wxPythonApp->argv = NULL; + PyObject* sysargv = PySys_GetObject("argv"); + int argc = PyList_Size(sysargv); + char** argv = new char*[argc+1]; + int x; + for(x=0; xargc = argc; + wxPythonApp->argv = argv; wxEntryInitGui();