28 #ifndef PYTHON_CLASS_H__ 29 #define PYTHON_CLASS_H__ 104 static PyObject *
pass_instance (
void* instance,
const char* class_name);
126 static PyObject *module;
136 extern PyObject *globals;
140 #endif // PYTHON_CLASS_H__ Class to write data from a Gzip compressed file.
static bool exec_file(string filename)
Executes a Python script.
Class to read data from a Gzip compressed file.
static void put_tuple(PyObject *tuple, ogzstream &file)
Save a Python tuple into a file.
static void show_traceback(void)
Dumps any error information to stderr.
static PyObject * get_tuple(igzstream &file)
Loads a Python tuple previously saved with put_tuple ().
static PyObject * import_module(string filename)
Imports a Python module.
static PyObject * pass_instance(void *instance, const char *class_name)
Magic function that makes any C object available to Python!
static void exec_string(char *s)
Execute Python statements contained in a string.
static void insert_path(char *name)
Adds a directory to Python's include path.
Grant simplified access to the Python interpreter.
Declares the igzstream, ogzstream and fileops classes.
static void cleanup()
Cleanup Python.
static void init()
Initialise Python and insert the Adonthell include paths.