<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:12pt"><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt;">Hi there, </div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: garamond, 'new york', times, serif; font-size: 16.363636016845703px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I am trying to 'get' the current grass location, set it to a variable such that I can then use it in a python script.  Currently I have managed to print the current location to the command terminal screen using:</div><div style="background-color: transparent;"><div style="background-color: transparent;"><font face="garamond, new york, times, serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: garamond,
 'new york', times, serif; font-style: normal;"><font face="garamond, new york, times, serif">grass.run_command('g.gisenv', </font><span style="font-family: garamond, 'new york', times, serif; background-color: transparent;">get = 'LOCATION_NAME')</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: garamond, 'new york', times, serif; font-style: normal;"><span style="font-family: garamond, 'new york', times, serif; background-color: transparent;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: garamond, 'new york', times, serif; font-style: normal;">I have now become stuck. Would anyone be able to recommend to me a way to assign a variable to it???</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: garamond, 'new york', times, serif;
 font-style: normal;">Thank you in advance for any help you can offer.</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: garamond, 'new york', times, serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: garamond, 'new york', times, serif; font-style: normal;">Becky</div></div></div></body></html>