From fbabe8ad85725762e46b7c4c2f2c680c3351ec80 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 8 Jan 2017 22:47:57 +0200 Subject: There are two different kinds of extensions: modules that create new objects directly and snippets that just call into interpreter methods. --- mesonbuild/modules/modtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/modules/modtest.py') diff --git a/mesonbuild/modules/modtest.py b/mesonbuild/modules/modtest.py index dc347e2..3e11b70 100644 --- a/mesonbuild/modules/modtest.py +++ b/mesonbuild/modules/modtest.py @@ -13,8 +13,9 @@ # limitations under the License. from . import ModuleReturnValue +from . import ExtensionModule -class TestModule: +class TestModule(ExtensionModule): def print_hello(self, state, args, kwargs): print('Hello from a Meson module') -- cgit v1.1