https://github.com/python/cpython
Revision f6e7a6ce651b43c6e060608a4bb20685f39e9eaa authored by Victor Stinner on 12 March 2024, 17:31:35 UTC, committed by GitHub on 12 March 2024, 17:31:35 UTC
Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.
1 parent 5d72b75
Raw File
Tip revision: f6e7a6ce651b43c6e060608a4bb20685f39e9eaa authored by Victor Stinner on 12 March 2024, 17:31:35 UTC
gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (#116658)
Tip revision: f6e7a6c
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#include "Python.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>  /* __argc, __wargv */

int WINAPI wWinMain(
    HINSTANCE hInstance,      /* handle to current instance */
    HINSTANCE hPrevInstance,  /* handle to previous instance */
    LPWSTR lpCmdLine,         /* pointer to command line */
    int nCmdShow              /* show state of window */
)
{
    return Py_Main(__argc, __wargv);
}
back to top