From 8b41116c2268ce867bfc550146f50f792951c678 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 20 Feb 2001 20:54:28 +0000 Subject: import.c -> importexc.c --- Demo/embed/import.c | 17 ----------------- Demo/embed/importexc.c | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 Demo/embed/import.c create mode 100644 Demo/embed/importexc.c diff --git a/Demo/embed/import.c b/Demo/embed/import.c deleted file mode 100644 index 375ce1b..0000000 --- a/Demo/embed/import.c +++ /dev/null @@ -1,17 +0,0 @@ -#include - -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; -} diff --git a/Demo/embed/importexc.c b/Demo/embed/importexc.c new file mode 100644 index 0000000..375ce1b --- /dev/null +++ b/Demo/embed/importexc.c @@ -0,0 +1,17 @@ +#include + +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; +} -- cgit v0.12