]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Add property for checking in Shaper.
authorAlexey Kondratyev <alexey.kondratyev@opencascade.com>
Mon, 8 Nov 2021 12:14:14 +0000 (15:14 +0300)
committervsr <vsr@opencascade.com>
Wed, 1 Dec 2021 08:09:57 +0000 (11:09 +0300)
src/SalomeApp/SalomeApp_Application.cxx

index aedddec2ac591f5b3fa5e83ec9a12029d6bc0fdb..a4a26f4a4fa9129657e8ed1c92e6ae2d3a8f26e2 100644 (file)
@@ -1005,7 +1005,12 @@ void SalomeApp_Application::onLoadScript( )
     PyConsole_Console* pyConsole = pythonConsole();
 
     if ( pyConsole )
-      pyConsole->exec( command );
+    {
+      std::string aProperty("IsLoadedScript");
+      setProperty(aProperty.c_str(), true);
+      pyConsole->exec(command);
+      setProperty(aProperty.c_str(), false);
+    }
 #endif
   }
 }