From 95ed8ae14a6ec547feeaa6e60a78145c3bf31bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Tue, 16 Jun 2020 21:57:31 +0200 Subject: [PATCH] Add module variable to fake MoVariant. --- src/runner/pythonrunner.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index fed5cd7..b45370a 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -827,6 +827,9 @@ BOOST_PYTHON_MODULE(mobase) bpy::def("getFileVersion", &MOBase::getFileVersion); bpy::def("getProductVersion", &MOBase::getProductVersion); bpy::def("getIconForExecutable", &MOBase::iconForExecutable); + + // Expose MoVariant: + bpy::scope().attr("MoVariant") = bpy::object(); } /**