mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-03 00:04:47 -04:00
change default folder for Processing outputs to $HOME/processing to make
it more visible and accessible
This commit is contained in:
parent
e6746493b9
commit
43ae0b6706
@ -41,7 +41,7 @@ def userFolder():
|
||||
|
||||
|
||||
def defaultOutputFolder():
|
||||
folder = os.path.join(userFolder(), "outputs")
|
||||
folder = os.path.join(QDir.homePath(), "processing")
|
||||
if not QDir(folder).exists():
|
||||
QDir().mkpath(folder)
|
||||
|
||||
|
@ -176,7 +176,7 @@ QVariant QgsProcessingLayerOutputDestinationWidget::value() const
|
||||
if ( folder == '.' )
|
||||
{
|
||||
// output name does not include a folder - use default
|
||||
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ), QStringLiteral( "%1/processing/outputs" ).arg( QgsApplication::qgisSettingsDirPath() ) ).toString();
|
||||
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ), QStringLiteral( "%1/processing" ).arg( QDir : homePath() ) ).toString();
|
||||
key = QDir( defaultFolder ).filePath( key );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user