On 23 March 2018 at 11:35, Vaclav Petras <[email protected]> wrote:
> > I'm not sure what exactly you want to use os.path.isfile() for, but > etc/colors/grass is a file in GRASS GIS since 7.2, so os.path.isfile() will > return True. In unix, you can see if the file is executable with > os.access(name, os.X_OK) (not sure if instead or in addtion to > os.path.isfile()). On Windows, testing for .bat or some other extension > might be the right test. > Ah sorry - I had the impression from somewhere that colors/grass is a folder. Nyall _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
