5

In QGIS processing scripts we can define a folder as input parameter as follows:

[...define input/output parameters...]
##mypath=folder
[...rest of the script...]

Question: Is it possible (and if yes, how) to set a default value for mypath?

According to the approach for setting defaults for string input parameters

#'spam' is the default here
##egg=string spam

I tried various things like

##mypath=folder C:\tmp
##mypath=folder C:\\tmp
##mypath=folder 'C:\\tmp'

but none of them seems to be valid.

asked Aug 9, 2017 at 11:56
0

1 Answer 1

2

You can set default paths for folders in QGIS 3.0:

Script

answered Nov 30, 2017 at 15:57

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.