Compare commits

..

1 Commits

2 changed files with 2 additions and 3 deletions

View File

@ -41,7 +41,7 @@ def userFolder():
def defaultOutputFolder(): def defaultOutputFolder():
folder = os.path.join(QDir.homePath(), "processing") folder = os.path.join(userFolder(), "outputs")
if not QDir(folder).exists(): if not QDir(folder).exists():
QDir().mkpath(folder) QDir().mkpath(folder)

View File

@ -25,7 +25,6 @@
#include "qgsprocessingcontext.h" #include "qgsprocessingcontext.h"
#include "qgsprocessingalgorithm.h" #include "qgsprocessingalgorithm.h"
#include "qgsfieldmappingwidget.h" #include "qgsfieldmappingwidget.h"
#include "qgsapplication.h"
#include <QMenu> #include <QMenu>
#include <QFileDialog> #include <QFileDialog>
#include <QInputDialog> #include <QInputDialog>
@ -176,7 +175,7 @@ QVariant QgsProcessingLayerOutputDestinationWidget::value() const
if ( folder == '.' ) if ( folder == '.' )
{ {
// output name does not include a folder - use default // output name does not include a folder - use default
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ), QStringLiteral( "%1/processing" ).arg( QDir::homePath() ) ).toString(); QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ) ).toString();
key = QDir( defaultFolder ).filePath( key ); key = QDir( defaultFolder ).filePath( key );
} }
} }