Skip to content

Commit

Permalink
Fix execution of qgis_process when no python is available
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 21, 2021
1 parent ffb12c7 commit b87c50f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/process/qgsprocess.cpp
Expand Up @@ -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" ) )
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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();
Expand All @@ -558,8 +558,8 @@ void QgsProcessingExec::loadPlugins()
}
}
}
}
#endif
}

void QgsProcessingExec::listAlgorithms( bool useJson )
{
Expand Down

0 comments on commit b87c50f

Please sign in to comment.