Re: [QGIS-Developer] QGIS variables in Python code

2017-11-24 Thread Andreas Neumann
Hi, Thanks, Ismail and Nyall! Andreas On 2017-11-24 08:23, Nyall Dawson wrote: > On 22 November 2017 at 21:21, Andreas Neumann wrote: > >> Hi, >> >> Is it possible to query the value of a QGIS variable in Python code? E.g. >> I'd like to find out in my code the full

Re: [QGIS-Developer] QGIS variables in Python code

2017-11-23 Thread Nyall Dawson
On 22 November 2017 at 21:21, Andreas Neumann wrote: > Hi, > > Is it possible to query the value of a QGIS variable in Python code? E.g. > I'd like to find out in my code the full storage path to the folder of my > current QGIS project, which would be available in the

Re: [QGIS-Developer] QGIS variables in Python code

2017-11-22 Thread Ismail Sunni
Hi Andreas If you mean QGIS variable, or project variable, or layer variable, you can do (read, set, delete) it by using https://qgis.org/api/classQgsExpressionContextUtils.html. Thanks On Wed, Nov 22, 2017 at 6:21 PM, Andreas Neumann wrote: > Hi, > > Is it possible to

[QGIS-Developer] QGIS variables in Python code

2017-11-22 Thread Andreas Neumann
Hi, Is it possible to query the value of a QGIS variable in Python code? E.g. I'd like to find out in my code the full storage path to the folder of my current QGIS project, which would be available in the @project_folder variable. Are variable values accessible through the Python API?