All Questions
1 question
4
votes
1
answer
802
views
Change layer path using PyQGIS
I have a QGIS Project with many raster layers. I need to change/repair all paths since I moved the original data to Another disk.
layer = iface.activeLayer()
old_path = r'D:/Somefolder_QGIS_200317'
...