I did test this on QGIS 3.4: <!-- language: pyqgis --> QgsProject.instance().fileName() will return the entire path to the file 'C:/MyDirectory/18809_US66.qgz'