Last change
on this file was 2, checked in by Yuri Dario, 15 years ago |
Initial import for vendor code.
|
-
Property svn:eol-style
set to
native
|
File size:
255 bytes
|
Line | |
---|
1 | #include <Python.h>
|
---|
2 |
|
---|
3 | char* cmd = "import exceptions";
|
---|
4 |
|
---|
5 | int main()
|
---|
6 | {
|
---|
7 | Py_Initialize();
|
---|
8 | PyEval_InitThreads();
|
---|
9 | PyRun_SimpleString(cmd);
|
---|
10 | Py_EndInterpreter(PyThreadState_Get());
|
---|
11 |
|
---|
12 | Py_NewInterpreter();
|
---|
13 | PyRun_SimpleString(cmd);
|
---|
14 | Py_Finalize();
|
---|
15 |
|
---|
16 | return 0;
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.