Skip to content

Commit

Permalink
ENH: Clear method of ManualImportFinder exposed to Python (#1060)
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ authored Aug 30, 2024
1 parent 75fa9ad commit a613be9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wrapping/python/NxPythonEmbed/NxPythonEmbed/NxPythonEmbed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a613be9

Please sign in to comment.