Commit 68c45e44bc392bd4ab157a0ff4359bc8e2996cc8

Authored by knodlseder
1 parent ea56c57e

Use %import instead of %include to reference gammalib base classes

Showing 1 changed file with 8 additions and 4 deletions
pyext/ctools.i
@@ -24,10 +24,14 @@ @@ -24,10 +24,14 @@
24 %module ctools 24 %module ctools
25 %feature("autodoc", "1"); 25 %feature("autodoc", "1");
26 26
27 -/* __ Support module _____________________________________________________ */  
28 -%include "stl.i"  
29 -%include "exception.i"  
30 -%include "GApplication.i" 27 +/* __ Include standard typemaps for vectors and strings __________________ */
  28 +%include stl.i
  29 +
  30 +/* __ Make sure that exceptions are catched ______________________________ */
  31 +%import(module="gammalib.support") "GException.i";
  32 +
  33 +/* __ Inform about base classes __________________________________________ */
  34 +%import(module="gammalib.app") "GApplication.i";
31 35
32 /* __ CTA tools __________________________________________________________ */ 36 /* __ CTA tools __________________________________________________________ */
33 %include "ctobssim.i" 37 %include "ctobssim.i"