Daniel wrote: > I'm having a lot of trouble starting this script in GRASS. > As I'm more than a newbie in programming, this is probably > some really basic mistake, but my other scripts all work > consistently in GRASS and I've been working on this > for quite a while with no success, so here goes :) > > I quickly put together a script, copied it into > /opt/grass/scripts, and when I try to call it from within > GRASS it returns the following error: ... > 'exceptions.OSError' object has no attribute 'value'
Is /opt/grass/scripts set up in GRASS_ADDON_PATH, and export GRASS_ADDON_PATH=/opt/grass/scripts set up in ~/.bashrc ? (Scripts run in two passes, the first will start from the pwd, but if that's not in the $PATH then the second g.parser pass won't be able to find itself, and you get a not-very-helpful error message.) just a guess, Hamish _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
