Changeset 9be487 in git
- Timestamp:
- Jan 15, 2007, 10:45:54 AM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5eeaa627461ffeea93905d09a69f5d74be734cbf
- Parents:
- 344c8cf18d2e1bcdaab66bf21e121cbe35e74657
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/python/python.cc
r344c8c r9be487 133 133 #line 2 "python.mod" 134 134 /* 135 * $Id: python.cc,v 1. 5 2005-10-05 06:46:59bricken Exp $135 * $Id: python.cc,v 1.6 2007-01-15 09:45:54 bricken Exp $ 136 136 * 137 137 * Test mod fuer modgen … … 151 151 #line 137 "python.cc" 152 152 extern "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 ) 157 160 { 158 161 idhdl h; … … 185 188 enter_id("category","tests", STRING_CMD); 186 189 #line 22 "python.mod" 187 enter_id("version","$Id: python.cc,v 1. 5 2005-10-05 06:46:59bricken Exp $", STRING_CMD);190 enter_id("version","$Id: python.cc,v 1.6 2007-01-15 09:45:54 bricken Exp $", STRING_CMD); 188 191 #line 23 "python.mod" 189 192 enter_id("info","LIBRARY: kernel.lib PROCEDURES OF GENERAL TYPE WRITEN IN C python(input); eval a string in python", STRING_CMD); … … 191 194 #line 27 "python.mod" 192 195 Py_Initialize(); 196 PyRun_SimpleString("from sys import path\n\ 197 path.insert(0,'.')\n"); 193 198 initSingular(); 194 199 init_Singular(); 195 200 196 201 #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); 199 204 if(ret!=-1) fclose(binfp); 200 205 return 0;
Note: See TracChangeset
for help on using the changeset viewer.