Fix initialisation of the pcbnew python module
This commit is contained in:
parent
1a11480bfd
commit
e9da6811a6
|
@ -42,9 +42,7 @@
|
||||||
/* init functions defined by swig */
|
/* init functions defined by swig */
|
||||||
|
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
extern "C" PyObject* init_kicad( void );
|
extern "C" PyObject* PyInit__pcbnew( void );
|
||||||
|
|
||||||
extern "C" PyObject* init_pcbnew( void );
|
|
||||||
#else
|
#else
|
||||||
extern "C" void init_kicad( void );
|
extern "C" void init_kicad( void );
|
||||||
|
|
||||||
|
@ -120,7 +118,11 @@ static void swigAddBuiltin()
|
||||||
|
|
||||||
static void swigAddModules()
|
static void swigAddModules()
|
||||||
{
|
{
|
||||||
|
#if PY_MAJOR_VERSION >= 3
|
||||||
|
swigAddModule( "_pcbnew", PyInit__pcbnew );
|
||||||
|
#else
|
||||||
swigAddModule( "_pcbnew", init_pcbnew );
|
swigAddModule( "_pcbnew", init_pcbnew );
|
||||||
|
#endif
|
||||||
|
|
||||||
// finally it seems better to include all in just one module
|
// finally it seems better to include all in just one module
|
||||||
// but in case we needed to include any other modules,
|
// but in case we needed to include any other modules,
|
||||||
|
|
Loading…
Reference in New Issue