git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
/***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU Library General Public License as *
|
|
* published by the Free Software Foundation; either version 2 of the *
|
|
* License, or (at your option) any later version. *
|
|
* for detail see the LICENCE text file. *
|
|
* Jürgen Riegel 2002 *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#include "PreCompiled.h"
|
|
#ifndef _PreComp_
|
|
# include <Python.h>
|
|
#endif
|
|
|
|
#include <Base/Console.h>
|
|
#include "ImagePlane.h"
|
|
|
|
|
|
/* registration table */
|
|
static struct PyMethodDef Image_methods[] = {
|
|
{NULL, NULL} /* end of table marker */
|
|
};
|
|
|
|
/* Python entry */
|
|
extern "C" {
|
|
void ImageExport initImage() {
|
|
(void) Py_InitModule("Image", Image_methods); /* mod name, table ptr */
|
|
Base::Console().Log("Loading Image module... done\n");
|
|
|
|
Image::ImagePlane::init();
|
|
|
|
return;
|
|
}
|
|
|
|
} // extern "C"
|