From 10c3910e9bfbe6c456fcc02a272054ae690c5951 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 29 Apr 2005 19:00:31 +0000 Subject: [PATCH] init wxApp->argc and wxApp->argv even when wx has already been initialized git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/helpers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index f37f539eca..9b0c4c79ab 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -451,6 +451,11 @@ void wxPyApp::_BootstrapApp() wxPyEndBlockThreads(blocked); haveInitialized = true; } + else { + this->argc = 0; + this->argv = NULL; + } + // It's now ok to generate exceptions for assertion errors. wxPythonApp->SetStartupComplete(true);