[GRASS-user] Getting Started with GRASS Python Scripts

Jed jedfrechette at gmail.com
Sat May 25 14:41:26 PDT 2013


Martin Lacayo wrote
>     #remove the location from disk
>     print 'Removing location %s' % location_uri
>     os.system("rm -rf %s" % location_uri)

Rather than rely on having 'rm' available you could also do:

import shutil
shutil.rmtree(location_uri)



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Getting-Started-with-GRASS-Python-Scripts-tp5055380p5055759.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list