X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Fgui%2FXmedConsoleDriver.cxx;h=c744310651fd4a91741059014b312c0bb280548f;hb=HEAD;hp=631bd1811290e33ea76483bc3b10144c7277bdd9;hpb=dba00432e60dbd4e506f6f48be03da81df930345;p=modules%2Fmed.git diff --git a/src/MEDCalc/gui/XmedConsoleDriver.cxx b/src/MEDCalc/gui/XmedConsoleDriver.cxx index 631bd1811..c74431065 100644 --- a/src/MEDCalc/gui/XmedConsoleDriver.cxx +++ b/src/MEDCalc/gui/XmedConsoleDriver.cxx @@ -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);