diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index 3a928084ad42d6f0c4bd320edb26626429c73dcb..90aba96d37b4bd0200ef7548fdb93cbb0807c7d3 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -105,10 +105,13 @@ CommandLineLauncher::Load() return false; } - if( this->LoadPath() == false ) + if( m_Parser->IsAttributExists(m_Parser->GetModulePathKey(), m_Expression) ) { - std::cerr << "ERROR: At least one specifed path within \""<< m_Parser->GetAttributAsString(m_Parser->GetModulePathKey(), m_Expression)<<"\" is invalid or doesn't exist..." <<std::endl; - return false; + if( this->LoadPath() == false ) + { + std::cerr << "ERROR: At least one specifed path within \""<< m_Parser->GetAttributAsString(m_Parser->GetModulePathKey(), m_Expression)<<"\" is invalid or doesn't exist..." <<std::endl; + return false; + } } this->LoadApplication();