10 #include <boost/python.hpp> 29 leftv __v = __h, __v_save;
30 int __tok =
NONE, __index = 0;
33 if(__v==
NULL)
goto mod_python_error;
36 goto mod_python_error;
40 goto mod_python_error;
42 a = (
char *)__za->
Data();
43 if(__v!=
NULL) { __tok = __v->
Typ();
goto mod_python_error; }
45 PyRun_SimpleString(a);
52 Werror(
"expected python('string')");
59 extern "C" int SI_MOD_INIT(python_module)(
SModulFunctions* psModulFunctions)
61 char *py=
getenv(
"PYTHONPATH");
71 Print(
"setting PYTHONAPTH to %s\n",buf);
72 setenv(
"PYTHONPATH",buf,1);
75 PyRun_SimpleString(
"from sys import path\n\ 76 path.insert(0,'.')\n");
80 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,...)