Skip to main content
added 35 characters in body
Source Link
Taras
  • 34.1k
  • 4
  • 73
  • 148

I did test this on QGIS 3.4
QgsProject.instance().fileName():

QgsProject.instance().fileName()

will return the entire path to the file

'C:/MyDirectory/18809_US66.qgz'

'C:/MyDirectory/18809_US66.qgz'

I did test this on QGIS 3.4
QgsProject.instance().fileName()

will return the entire path to the file

'C:/MyDirectory/18809_US66.qgz'

I did test this on QGIS 3.4:

QgsProject.instance().fileName()

will return the entire path to the file

'C:/MyDirectory/18809_US66.qgz'
Source Link
Cary H
  • 1k
  • 12
  • 22

I did test this on QGIS 3.4
QgsProject.instance().fileName()

will return the entire path to the file

'C:/MyDirectory/18809_US66.qgz'