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 <[email protected]>
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 @project_folder
> variable.
>
> Are variable values accessible through the Python API?
>
> Thanks for any example or hint,
>
> Andreas
>
> _______________________________________________
> QGIS-Developer mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Ismail Sunni
ismailsunni.wordpress.com
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to