From: vsr Date: Wed, 5 Aug 2020 06:44:19 +0000 (+0300) Subject: bos #19884 Avoid error message in terminal if SALOME is running in terminal mode X-Git-Tag: V9_6_0a1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=881fa64f6f5a37130f91c265983ff17d7f689814;p=modules%2Fshaper.git bos #19884 Avoid error message in terminal if SALOME is running in terminal mode --- diff --git a/src/InitializationPlugin/InitializationPlugin_EvalListener.cpp b/src/InitializationPlugin/InitializationPlugin_EvalListener.cpp index 1245e4abf..e2dceb117 100644 --- a/src/InitializationPlugin/InitializationPlugin_EvalListener.cpp +++ b/src/InitializationPlugin/InitializationPlugin_EvalListener.cpp @@ -227,5 +227,5 @@ void InitializationPlugin_EvalListener::processEvaluationEvent( void InitializationPlugin_EvalListener::initDataModel() { - myInterp->runString("salome_iapp.register_module_in_study(\"Shaper\")"); + myInterp->runString("import salome_iapp;salome_iapp.register_module_in_study(\"Shaper\")"); }