For a merge operation I need a list of all my layers in the TOC with path and filename. How can I achieve that?
layers = QgsProject.instance().mapLayers() # dictionary
myLyrList[]
for layer in layers.values():
print(layer.name())
#Here I need a List of the my layers in the toc with the path and the filename
processing.run("native:mergevectorlayers", {'LAYERS':['/home/lissiklaus/Downloads/2.shp|layername=2','/home/lissiklaus/Downloads/3.shp'],'CRS':QgsCoordinateReferenceSystem('EPSG:31468'),'OUTPUT':'TEMPORARY_OUTPUT'})