Skip to content

Commit

Permalink
BUG: Fixed python version check for existence of importlib.metadata (#…
Browse files Browse the repository at this point in the history
…1040)

Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ authored Aug 8, 2024
1 parent 9113966 commit acaa8f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ inline std::vector<std::string> LoadPythonPlugins(const std::set<std::string>& p
inline py::module_ GetImportlibMetadata()
{
auto sys = py::module_::import("sys");
if(sys.attr("version_info").attr("__lt__")(py::make_tuple(3, 10)))
if(sys.attr("version_info").attr("__lt__")(py::make_tuple(3, 10)).cast<bool>())
{
return py::module_::import("importlib_metadata");
}
Expand Down

0 comments on commit acaa8f8

Please sign in to comment.