Changeset 9be487 in git


Ignore:
Timestamp:
Jan 15, 2007, 10:45:54 AM (17 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5eeaa627461ffeea93905d09a69f5d74be734cbf
Parents:
344c8cf18d2e1bcdaab66bf21e121cbe35e74657
Message:
+ adjusted to Singular 3.0.3/add . to default path


git-svn-id: file:///usr/local/Singular/svn/trunk@9715 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/python/python.cc

    r344c8c r9be487  
    133133#line 2 "python.mod"
    134134/*
    135  *  $Id: python.cc,v 1.5 2005-10-05 06:46:59 bricken Exp $
     135 *  $Id: python.cc,v 1.6 2007-01-15 09:45:54 bricken Exp $
    136136 *
    137137 *  Test mod fuer modgen
     
    151151#line 137 "python.cc"
    152152extern "C" {
    153 int mod_init(
    154   int (*iiAddCproc)(char *libname, char *procname, BOOLEAN pstatic,
    155               BOOLEAN(*func)(leftv res, leftv v))
    156   )
     153//int mod_init(
     154//  int (*iiAddCproc)(char *libname, char *procname, BOOLEAN pstatic,
     155//              BOOLEAN(*func)(leftv res, leftv v))
     156//  )
     157  int mod_init(
     158    SModulFunctions* psModulFunctions
     159    )
    157160{
    158161  idhdl h;
     
    185188  enter_id("category","tests", STRING_CMD);
    186189#line 22 "python.mod"
    187   enter_id("version","$Id: python.cc,v 1.5 2005-10-05 06:46:59 bricken Exp $", STRING_CMD);
     190  enter_id("version","$Id: python.cc,v 1.6 2007-01-15 09:45:54 bricken Exp $", STRING_CMD);
    188191#line 23 "python.mod"
    189192  enter_id("info","LIBRARY: kernel.lib  PROCEDURES OF GENERAL TYPE WRITEN IN C python(input); eval a string  in python", STRING_CMD);
     
    191194#line 27 "python.mod"
    192195  Py_Initialize();
     196  PyRun_SimpleString("from sys import path\n\
     197path.insert(0,'.')\n");
    193198  initSingular();
    194199  init_Singular();
    195200
    196201#line 36 "python.mod"
    197   iiAddCproc(currPack->libname,"python",FALSE, mod_python);
    198 
     202  psModulFunctions->iiAddCproc(currPack->libname,"python",FALSE, mod_python);
     203//psModulFunctions->iiAddCproc("packagename","procname",FALSE, procedure);
    199204  if(ret!=-1) fclose(binfp);
    200205  return 0;
Note: See TracChangeset for help on using the changeset viewer.