Hi, 

Thanks, Ismail and Nyall! 

Andreas 

On 2017-11-24 08:23, Nyall Dawson wrote:

> On 22 November 2017 at 21:21, 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.
> 
> Yes, as Ismail said.
> 
> However, in this case it's easier to just use the PyQGIS QgsProject
> API directly:
> 
> QgsProject.instance().fileName()
> 
> or
> 
> QgsProject.instance().homePath()
> 
> Nyall
_______________________________________________
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