20#include <boost/python.hpp>
27 leftv __v = __h, __v_save;
28 int __tok =
NONE, __index = 0;
31 if(__v==
NULL)
goto mod_python_error;
34 goto mod_python_error;
38 goto mod_python_error;
40 a = (
char *)__za->
Data();
41 if(__v!=
NULL) { __tok = __v->
Typ();
goto mod_python_error; }
43 PyRun_SimpleString(a);
50 Werror(
"expected python('string')");
69 Print(
"setting PYTHONAPTH to %s\n",
buf);
70 setenv(
"PYTHONPATH",
buf,1);
73 PyRun_SimpleString(
"from sys import path\n\
74path.insert(0,'.')\n");
84 PrintS(
"no python_mod support\n");
Class used for (list of) interpreter objects.
static char * feResource(feResourceConfig config, int warn)
int iiTestConvert(int inputType, int outputType)
const char * Tok2Cmdname(int tok)
BOOLEAN iiConvert(int inputType, int outputType, int index, leftv input, leftv output, const struct sConvertTypes *dConvertTypes)
int SI_MOD_INIT() python_module(SModulFunctions *psModulFunctions)
static BOOLEAN mod_python(leftv __res, leftv __h)
void PrintS(const char *s)
void Werror(const char *fmt,...)
int status int void * buf