The issue is not the slashes, at least not what I noticed. The problem is that GDAL is within the osgeo package by default, and that in some cases where glob is used the absolute path is returned rather than just the filename. With these changes the code works on Ubuntu.
The issue is not the slashes, at least not what I noticed. The problem is that GDAL is within the
osgeo
package by default, and that in some cases whereglob
is used the absolute path is returned rather than just the filename. With these changes the code works on Ubuntu.