Salome HOME
Updated copyright comment
[modules/med.git] / src / MEDCalc / gui / XmedConsoleDriver.cxx
index 0d4c4ae2f80b4a6e9e354210bbf4e7485e7c6abb..c744310651fd4a91741059014b312c0bb280548f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2016  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -18,9 +18,9 @@
 //
 // Author : Guillaume Boulant (EDF)
 
+#include "MEDModule.hxx"
 #include "XmedConsoleDriver.hxx"
 #include "Utils_SALOME_Exception.hxx"
-#include "MEDModule.hxx"
 #include "MEDCommandsHistoryManager_i.hxx"
 #include "MEDFactoryClient.hxx"
 #include CORBA_CLIENT_HEADER(MED_Gen)
@@ -61,7 +61,7 @@ void XmedConsoleDriver::setup() {
     commands += "";
     commands += "from medcalc.medconsole import saveWorkspace, cleanWorkspace";
     commands += "from medcalc.medconsole import putInWorkspace, removeFromWorkspace";
-    commands += "from medcalc.medconsole import accessField";
+    commands += "from medcalc.medconsole import accessField, view";
     commands += "from medcalc.medconsole import getEnvironment, ls, la";
     commands += "";
     this->exec(commands);
@@ -76,7 +76,6 @@ void XmedConsoleDriver::exec(const QStringList& commands) {
   MEDCALC::MEDCommandsHistoryManager_ptr history = MEDFactoryClient::getCommandsHistoryManager();
 
   QStringListIterator it(commands);
-  int i = 0;
   while (it.hasNext()) {
     const QString& command = it.next();
     _pyConsole->exec(command);