source: git/Singular/dyn_modules/python/python.mod @ 79d8c07

spielwiese
Last change on this file since 79d8c07 was 79d8c07, checked in by Hans Schoenemann <hannes@…>, 7 years ago
simplified some files: dyn_modules/python
  • Property mode set to 100644
File size: 478 bytes
Line 
1#include <stdio.h>
2#include <stdlib.h>
3#include <string.h>
4#include <time.h>
5#include <Python.h>
6#include <wrapper.h>
7
8void mbpython(char* in);
9%modinitial
10  Py_Initialize();
11  initSingular();
12  init_Singular();
13
14%endinitial
15
16%procedures
17/*
18 * NAME:     python
19 *           procedure without string as parameter and no return val
20 * PURPOSE:  interprets the string in python
21 */
22none python(string a)
23{
24  %declaration;
25  %typecheck;
26  PyRun_SimpleString(a);
27  %return();
28}
29%C
30
31
Note: See TracBrowser for help on using the repository browser.