diff --git a/wrapping/python/NxPythonEmbed/NxPythonEmbed/NxPythonEmbed.hpp b/wrapping/python/NxPythonEmbed/NxPythonEmbed/NxPythonEmbed.hpp index ef774df1e6..6182bba40b 100644 --- a/wrapping/python/NxPythonEmbed/NxPythonEmbed/NxPythonEmbed.hpp +++ b/wrapping/python/NxPythonEmbed/NxPythonEmbed/NxPythonEmbed.hpp @@ -123,6 +123,11 @@ class ManualImportFinderHolder py::list(sys.attr("meta_path")).append(m_Finder); } + void clear() + { + m_Finder.attr("clear")(); + } + static ManualImportFinderHolder GetFromMetaPath() { auto sys = py::module_::import("sys");