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);