File: bsppython.c

package info (click to toggle)
python-scientific 2.4.11-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,956 kB
  • ctags: 3,063
  • sloc: python: 9,157; ansic: 4,483; xml: 4,145; makefile: 126; sh: 18; csh: 1
file content (23 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* BSPlib version of python.c. BSPlib initialization must occur before
   Python starts up. */

#include "Python.h"
#include "bsp.h"

extern DL_EXPORT(int) Py_Main(int, char **);
extern DL_EXPORT(void) initScientific_bsplib(void);

int
main(int argc, char **argv)
{
  int return_code;
  bsp_begin(bsp_nprocs());

  Py_Initialize();
  initScientific_bsplib();

  return_code = Py_Main(argc, argv);

  bsp_end();
  return return_code;
}