10 #include <boost/python.hpp> 30 leftv __v = __h, __v_save;
31 int __tok =
NONE, __index = 0;
34 if(__v==
NULL)
goto mod_python_error;
37 goto mod_python_error;
41 goto mod_python_error;
43 a = (
char *)__za->
Data();
44 if(__v!=
NULL) { __tok = __v->
Typ();
goto mod_python_error; }
46 PyRun_SimpleString(a);
53 Werror(
"expected python('string')");
60 extern "C" int SI_MOD_INIT(python_module)(
SModulFunctions* psModulFunctions)
72 Print(
"setting PYTHONAPTH to %s\n",buf);
73 setenv(
"PYTHONPATH",buf,1);
76 PyRun_SimpleString(
"from sys import path\n\ 77 path.insert(0,'.')\n");
81 psModulFunctions->iiAddCproc(
currPack->libname,
"python",
FALSE, mod_python);
int iiTestConvert(int inputType, int outputType)
Class used for (list of) interpreter objects.
BOOLEAN iiConvert(int inputType, int outputType, int index, leftv input, leftv output, const struct sConvertTypes *dConvertTypes)
static char * feResource(feResourceConfig config, int warn)
int status int void * buf
const char * Tok2Cmdname(int tok)
void Werror(const char *fmt,...)