@@ -201,7 +201,7 @@ namespace mo2::python {
201201 .def (" library" , &ExecutableForcedLoadSetting::library)
202202 .def (" process" , &ExecutableForcedLoadSetting::process);
203203
204- py::class_<IExecutable, std::shared_ptr<IExecutable> >(m, " IExecutable" )
204+ py::class_<IExecutable>(m, " IExecutable" )
205205 .def (" title" , &IExecutable::title)
206206 .def (" binaryInfo" , &IExecutable::binaryInfo)
207207 .def (" arguments" , &IExecutable::arguments)
@@ -213,10 +213,13 @@ namespace mo2::python {
213213 .def (" hide" , &IExecutable::hide);
214214
215215 py::class_<IExecutablesList>(m, " IExecutablesList" )
216- .def (" executables" , &IExecutablesList::executables)
216+ .def (" executables" ,
217+ [](IExecutablesList* executablesList) {
218+ return make_generator (executablesList->executables ());
219+ })
217220 .def (" getByTitle" , &IExecutablesList::getByTitle, " title" _a)
218221 .def (" getByBinary" , &IExecutablesList::getByBinary, " info" _a)
219- .def (" titleExists" , &IExecutablesList::titleExists , " title" _a);
222+ .def (" titleExists" , &IExecutablesList::contains , " title" _a);
220223 }
221224
222225 void add_modinterface_classes (py::module_ m)
0 commit comments