cleanup and inithook

This commit is contained in:
Michael Davidsaver
2018-11-04 16:47:23 -08:00
parent 6b8d7ff7c5
commit 574ca20bdb
6 changed files with 22 additions and 12 deletions

View File

@ -30,9 +30,6 @@ static void cleanupPy(void *junk)
PyEval_RestoreThread(state);
/* special "fake" hook for shutdown */
//pyhook((initHookState)9999);
if(PyRun_SimpleString("import devsup\n"
"devsup._fini(iocMain=True)\n"
)) {
@ -117,8 +114,6 @@ static void setupPyPath(void)
static void pySetupReg(void)
{
PyGILState_STATE state;
Py_Initialize();
PyEval_InitThreads();