Commit b43eb464 authored by jcfr's avatar jcfr

BUG: Fix processing of "additional-module-paths" command line option

When multiple paths were passed, they were incorrectly converted to a single
path containing a space instead of a list of paths.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21590 3bd1e089-480b-0410-8dfb-8563597acbee
parent 43f2ab18
......@@ -147,9 +147,15 @@ bool qSlicerCoreCommandOptions::ignoreSlicerRC()const
QStringList qSlicerCoreCommandOptions::additonalModulePaths()const
{
Q_D(const qSlicerCoreCommandOptions);
return QStringList()
<< d->ParsedArgs.value("additional-module-path").toString()
<< d->ParsedArgs.value("additional-module-paths").toStringList();
QStringList allAdditonalModulePaths;
QString additonalModulePath = d->ParsedArgs.value("additional-module-path").toString();
if (!additonalModulePath.isEmpty())
{
allAdditonalModulePaths << additonalModulePath;
}
allAdditonalModulePaths.append(d->ParsedArgs.value("additional-module-paths").toStringList());
return allAdditonalModulePaths;
}
//-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment