[GRASS-dev] python raster_history function broken?
glynn at gclements.plus.com
Thu Oct 30 15:00:27 PDT 2014
Luca Delucchi wrote:
> The raster_history function on my computer is not working.
> In : 'CMDLINE' in os.environ.keys()
> Out: False
> What should CMDLINE environment variable do?
It contains an approximation to the command line used to run the
script, as a string It's set by grass.script.parser() (in
cmdline = [basename(sys.argv)]
cmdline += ['"' + arg + '"' for arg in sys.argv[1:]]
os.environ['CMDLINE'] = ' '.join(cmdline)
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev