plugins: python-renderer: Add gds-render-module
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
* along with GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file python-renderer/plugin-main.c
|
||||
* @author Mario
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup python-plugin Python Plugin for External Renderer
|
||||
* @ingroup plugins
|
||||
@@ -33,6 +38,8 @@
|
||||
#include <gds-render/gds-utils/gds-types.h>
|
||||
#include <gds-render/output-renderers/external-renderer-interfaces.h>
|
||||
|
||||
#include <python-renderer/gds-render-module.h>
|
||||
|
||||
/**
|
||||
* @brief Global variable for loaded module. This is not very nice.
|
||||
* @warning This has to be changed, if this api wants to be re-entrant.
|
||||
@@ -90,6 +97,7 @@ int FUNC_DECL(EXTERNAL_LIBRARY_INIT_FUNCTION)(const char *params, const char *ve
|
||||
Py_Initialize();
|
||||
|
||||
if (!getcwd(cwd, sizeof(cwd))) {
|
||||
fprintf(stderr, "Error getting current working directory. Maybe the path is too long?\n");
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user