mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Taking the [:-4] slice from basename and splitext() try to do the same thing. Usually splitext() was failing silently, but if you're using the iterating function of processing, you can have filenames like <timestamp>.<sequenceno>.shp, which makes it cut off the sequencenumber and makes the OGR import fail. I've left only the [:-4] slice because we check whether the file ends with .shp above anyway. This is also the way the grass7 file does it.