]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #19884 Avoid error message in terminal if SALOME is running in terminal mode
authorvsr <vsr@opencascade.com>
Wed, 5 Aug 2020 06:44:19 +0000 (09:44 +0300)
committervsr <vsr@opencascade.com>
Wed, 5 Aug 2020 06:44:19 +0000 (09:44 +0300)
src/InitializationPlugin/InitializationPlugin_EvalListener.cpp

index 1245e4abf0c0419879944b39456769304d7e17e9..e2dceb117b7870bc89080d29f5f1bec3bafe24b8 100644 (file)
@@ -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\")");
 }