mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Make calls into ../PC/frozen_dllmain.c on MS_WIN32.
This commit is contained in:
parent
f015e18d9d
commit
6deac7a105
1 changed files with 11 additions and 0 deletions
|
@ -33,6 +33,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
|
#ifdef MS_WIN32
|
||||||
|
extern void PyWinFreeze_ExeInit();
|
||||||
|
extern void PyWinFreeze_ExeTerm();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h> /* For isatty() */
|
#include <unistd.h> /* For isatty() */
|
||||||
#endif
|
#endif
|
||||||
|
@ -64,6 +69,9 @@ Py_FrozenMain(argc, argv)
|
||||||
|
|
||||||
Py_SetProgramName(argv[0]);
|
Py_SetProgramName(argv[0]);
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
|
#ifdef MS_WIN32
|
||||||
|
PyWinFreeze_ExeInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (Py_VerboseFlag)
|
if (Py_VerboseFlag)
|
||||||
fprintf(stderr, "Python %s\n%s\n",
|
fprintf(stderr, "Python %s\n%s\n",
|
||||||
|
@ -84,6 +92,9 @@ Py_FrozenMain(argc, argv)
|
||||||
if (inspect && isatty((int)fileno(stdin)))
|
if (inspect && isatty((int)fileno(stdin)))
|
||||||
sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
|
sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
|
||||||
|
|
||||||
|
#ifdef MS_WIN32
|
||||||
|
PyWinFreeze_ExeTerm();
|
||||||
|
#endif
|
||||||
Py_Finalize();
|
Py_Finalize();
|
||||||
return sts;
|
return sts;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue