From 68c45e44bc392bd4ab157a0ff4359bc8e2996cc8 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Mon, 24 Oct 2011 03:50:51 +0000 Subject: [PATCH] Use %import instead of %include to reference gammalib base classes --- pyext/ctools.i | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pyext/ctools.i b/pyext/ctools.i index cf4e842..2f145e4 100755 --- a/pyext/ctools.i +++ b/pyext/ctools.i @@ -24,10 +24,14 @@ %module ctools %feature("autodoc", "1"); -/* __ Support module _____________________________________________________ */ -%include "stl.i" -%include "exception.i" -%include "GApplication.i" +/* __ Include standard typemaps for vectors and strings __________________ */ +%include stl.i + +/* __ Make sure that exceptions are catched ______________________________ */ +%import(module="gammalib.support") "GException.i"; + +/* __ Inform about base classes __________________________________________ */ +%import(module="gammalib.app") "GApplication.i"; /* __ CTA tools __________________________________________________________ */ %include "ctobssim.i" -- libgit2 0.21.4