Salome HOME
Updated copyright comment
[modules/med.git] / src / MEDCalc / gui / XmedConsoleDriver.cxx
index 631bd1811290e33ea76483bc3b10144c7277bdd9..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
@@ -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);