KiCad scripting plugin architecture, footprint wizards first

This commit is contained in:
Miguel Angel Ajo
2012-05-05 22:18:47 +02:00
parent f114e800a4
commit edee5dc1ce
9 changed files with 476 additions and 13 deletions
+3 -10
View File
@@ -90,15 +90,6 @@ void pcbnewInitPythonScripting()
swigAddModules();
swigSwitchPythonBuiltin();
#if 0
/* print the list of modules available from python */
while(PyImport_Inittab[i].name)
{
printf("name[%d]=>%s\n",i,PyImport_Inittab[i].name);
i++;
}
#endif
Py_Initialize();
/* setup the scripting path, we may need to add the installation path
@@ -106,7 +97,9 @@ void pcbnewInitPythonScripting()
PyRun_SimpleString("import sys\n"
"sys.path.append(\".\")\n"
"import pcbnew\n");
"import pcbnew\n"
"pcbnew.LoadPlugins()"
);
}