Skip to content
Permalink
Browse files
Fix execution of qgis_process when no python is available
  • Loading branch information
nyalldawson committed Dec 21, 2021
1 parent ffb12c7 commit b87c50f2a9579c2811f60762f09f62f217c2b9c5
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/process/qgsprocess.cpp
@@ -276,6 +276,7 @@ int QgsProcessingExec::run( const QStringList &constArgs )
QCoreApplication::exit( 1 );
return 1;
}
#endif

const QString command = args.at( 1 );
if ( command == QLatin1String( "plugins" ) )
@@ -508,7 +509,6 @@ int QgsProcessingExec::run( const QStringList &constArgs )
{
std::cerr << QStringLiteral( "Command %1 not known!\n" ).arg( command ).toLocal8Bit().constData();
}
#endif
return 1;
}

@@ -538,9 +538,9 @@ void QgsProcessingExec::showUsage( const QString &appName )
std::cout << msg.join( QString() ).toLocal8Bit().constData();
}

#ifdef WITH_BINDINGS
void QgsProcessingExec::loadPlugins()
{
#ifdef WITH_BINDINGS
QgsSettings settings;
// load plugins
const QStringList plugins = mPythonUtils->pluginList();
@@ -558,8 +558,8 @@ void QgsProcessingExec::loadPlugins()
}
}
}
}
#endif
}

void QgsProcessingExec::listAlgorithms( bool useJson )
{

0 comments on commit b87c50f

Please sign in to comment.