Staging
v0.8.1
Revision 7fbc3046df5cac4dd6cf0cbbf96707a94a305bb6 authored by Kurt B. Kaiser on 27 July 2003, 00:56:41 UTC, committed by Kurt B. Kaiser on 27 July 2003, 00:56:41 UTC
1 parent ee924cd
Raw File
importexc.c
#include <Python.h>

char* cmd = "import exceptions";

int main()
{
	Py_Initialize();
	PyEval_InitThreads();
	PyRun_SimpleString(cmd);
	Py_EndInterpreter(PyThreadState_Get());

	Py_NewInterpreter();
	PyRun_SimpleString(cmd);
	Py_Finalize();

	return 0;
}
back to top