From 1f5e5770848c330a6f325e0b06295e219ace08c2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 20 May 2000 00:13:02 +0000 Subject: [PATCH] gave wxTheApp->argv a real set of values git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/helpers.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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();