aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/src/pybind11-qt/pybind11_qt_utils.cpp
blob: 249bed58306f5079e90cc02556c77a7ab2fdd342 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "pybind11_qt/details/pybind11_qt_utils.h"

namespace pybind11::detail::qt {

    pybind11::object get_attr_rec(std::string_view package, std::string_view path)
    {

        return module_::import("operator")
            .attr("attrgetter")(path.data())(module_::import(package.data()));
    }
}  // namespace pybind11::detail::qt