diff --git a/Modules/Wrappers/SWIG/src/otbApplication.i b/Modules/Wrappers/SWIG/src/otbApplication.i index 896016f85cd3f57816980e21b683ee351abf3cc2..db1d073b282ac8c08b7a013e3c5caa630e9eb844 100644 --- a/Modules/Wrappers/SWIG/src/otbApplication.i +++ b/Modules/Wrappers/SWIG/src/otbApplication.i @@ -225,6 +225,7 @@ public: unsigned long itk::Object::AddObserver(const EventObject & event, Command * command); + bool IsDeprecated(); #if SWIGPYTHON %extend @@ -906,6 +907,8 @@ public: application = _otbApplication.Registry_CreateApplicationWithoutLogger(name) if application is not None: application.SetupLogger() + if application.IsDeprecated(): + application.GetLogger().Warning("This application is deprecated and will be removed in a future OTB release") return application } #else