diff --git a/src/binding/python/Attributable.cpp b/src/binding/python/Attributable.cpp index 61f1376b94..1561345b21 100644 --- a/src/binding/python/Attributable.cpp +++ b/src/binding/python/Attributable.cpp @@ -362,6 +362,14 @@ bool setAttributeFromObject( void init_Attributable(py::module &m) { + py::class_(m, "AttributablePath") + .def_readonly("directory", &Attributable::MyPath::directory) + .def_readonly("series_name", &Attributable::MyPath::seriesName) + .def_readonly( + "series_extension", &Attributable::MyPath::seriesExtension) + .def_readonly("group", &Attributable::MyPath::group) + .def_property_readonly("file_path", &Attributable::MyPath::filePath); + py::class_(m, "Attributable") .def(py::init()) @@ -491,7 +499,8 @@ void init_Attributable(py::module &m) .def_property( "comment", &Attributable::comment, &Attributable::setComment) // TODO remove in future versions (deprecated) - .def("set_comment", &Attributable::setComment); + .def("set_comment", &Attributable::setComment) + .def("my_path", &Attributable::myPath); py::bind_vector(m, "Attribute_Keys"); }