#6881 - fixed wrong return type; improved the formatting
[python.git] / Demo / embed / importexc.c
blob375ce1b686954efb15b2e813385b957b297a2c3d
1 #include <Python.h>
3 char* cmd = "import exceptions";
5 int main()
7 Py_Initialize();
8 PyEval_InitThreads();
9 PyRun_SimpleString(cmd);
10 Py_EndInterpreter(PyThreadState_Get());
12 Py_NewInterpreter();
13 PyRun_SimpleString(cmd);
14 Py_Finalize();
16 return 0;