#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; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Makefile | File | 1.13 KB | 0644 |
|
README | File | 822 B | 0644 |
|
demo.c | File | 2.13 KB | 0644 |
|
importexc.c | File | 255 B | 0644 |
|
loop.c | File | 740 B | 0644 |
|