golden hour
/lib64/python2.7/Demo/embed
⬆️ Go Up
Upload
File/Folder
Size
Actions
Makefile
1.13 KB
Del
OK
README
822 B
Del
OK
demo.c
2.13 KB
Del
OK
importexc.c
255 B
Del
OK
loop.c
740 B
Del
OK
Edit: 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; }
Save