diff --git a/doc/source/user_manual/getting_started/python.rst b/doc/source/user_manual/getting_started/python.rst index 262cd32..768672d 100644 --- a/doc/source/user_manual/getting_started/python.rst +++ b/doc/source/user_manual/getting_started/python.rst @@ -18,13 +18,6 @@ generally not very useful. >>> import gammalib >>> import ctools -.. warning:: - - The GammaLib module needs to be imported **before** the ctools - module so that GammaLib class types are handled correctly. - So make sure that you **always import the GammaLib module before the ctools - module.** - To illustrate how to use ctools from Python, below is a working example of an event list simulation using the :ref:`ctobssim` class. An instance ``sim`` of the :ref:`ctobssim` class is generated and user diff --git a/pyext/ctools/__init__.py b/pyext/ctools/__init__.py index 9c86e0f..ce53507 100644 --- a/pyext/ctools/__init__.py +++ b/pyext/ctools/__init__.py @@ -1,3 +1,6 @@ +# import gammalib first +import gammalib + # Import sub modules from .tools import * #import obsutils (require explicit from ctools import obsutils)