From 1ea006b74ec1c199920d44b08b672b0b97c64690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 3 May 2020 18:26:27 +0200 Subject: [PATCH] Add bindings for FileInfo. --- src/runner/pythonrunner.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index ec48f5e..a0c58a9 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -883,6 +883,12 @@ BOOST_PYTHON_MODULE(mobase) Functor_converter(); Functor_converter(); + bpy::class_("FileInfo", bpy::init<>()) + .def_readwrite("filePath", &IOrganizer::FileInfo::filePath) + .def_readwrite("archive", &IOrganizer::FileInfo::archive) + .def_readwrite("origins", &IOrganizer::FileInfo::origins) + ; + bpy::class_("IOrganizer") .def("createNexusBridge", bpy::pure_virtual(&IOrganizer::createNexusBridge), bpy::return_value_policy()) .def("profileName", bpy::pure_virtual(&IOrganizer::profileName))