Fixes to plug-in loading in and outside of pyodide

This commit is contained in:
Thomas Krijnen
2026-05-07 14:43:26 +02:00
parent 2257d7930a
commit e893552f24
19 changed files with 642 additions and 46 deletions
+26
View File
@@ -245,5 +245,31 @@
#include "../serializers/RocksDbSerializer.h"
%}
%{
#include <string>
#include <vector>
namespace ifcopenshell {
namespace plugin {
void set_search_paths(const std::vector<std::string>& paths);
std::vector<std::string> search_paths();
void clear_search_paths();
}
}
%}
%inline %{
void set_plugin_search_paths(const std::vector<std::string>& paths) {
ifcopenshell::plugin::set_search_paths(paths);
}
std::vector<std::string> get_plugin_search_paths() {
return ifcopenshell::plugin::search_paths();
}
void clear_plugin_search_paths() {
ifcopenshell::plugin::clear_search_paths();
}
%}
%include "IfcGeomWrapper.i"
%include "IfcParseWrapper.i"