[QGIS-Developer] [Qgis-user] Mac QGIS 3 GRASS fix

Nyall Dawson nyall.dawson at gmail.com
Thu Mar 22 18:57:52 PDT 2018


On 23 March 2018 at 11:35, Vaclav Petras <wenzeslaus at gmail.com> 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


More information about the QGIS-Developer mailing list