On Mon, May 30, 2016 at 6:45 PM, alassane toure <[email protected]> wrote:
> I need help to run a python-grass script outside grass. I executed the > following suggested program with the errors > > line 1: import: command not found > /home/alassane/Programs/pythonGrass-example.py: line 2: import: command > not found > /home/alassane/Programs/pythonGrass-example.py: line 3: import: command > not found > Hi, this sounds like you are running Python script with an interpreter like Bash. Look at shebang. Taking example from GRASS source code, scripts/r.shade/r.shade.py starts with: #!/usr/bin/env python Vaclav
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
