Aggregated common Octave argument list

This commit is contained in:
Magne Sjaastad
2014-07-22 12:11:48 +02:00
parent d014e5d228
commit 2fbcfde791
4 changed files with 33 additions and 39 deletions

View File

@@ -106,13 +106,7 @@ void RimCommandExecuteScript::redo()
QString octavePath = app->octavePath();
if (!octavePath.isEmpty())
{
// http://www.gnu.org/software/octave/doc/interpreter/Command-Line-Options.html#Command-Line-Options
QStringList arguments;
arguments.append("--path");
arguments << QApplication::applicationDirPath();
arguments.append("-q");
QStringList arguments = app->octaveArguments();
arguments.append("--eval");
arguments << this->scriptText();