Re: [GRASS-dev] G__getenv return different results from ctypes and from GRASS modules

2013-06-02 Thread Nikos Alexandris
Pietro Zambelli wrote: Why the ctypes version return 'PERMANENT' instead of 'user1'? Glynn Clements wrote: The $GISRC file is read the first time that an environment lookup is made. There is no way to force it to be re-read. Nikos Alexandris wrote: This means that I can't use

Re: [GRASS-dev] G__getenv return different results from ctypes and from GRASS modules

2013-06-01 Thread Pietro Zambelli
On Saturday 01 Jun 2013 01:48:39 Glynn Clements wrote: Nikos Alexandris wrote: Why the ctypes version return 'PERMANENT' instead of 'user1'? Glynn Clements wrote: The $GISRC file is read the first time that an environment lookup is made. There is no way to force it to be re-read.

Re: [GRASS-dev] G__getenv return different results from ctypes and from GRASS modules

2013-05-31 Thread Nikos Alexandris
Pietro wrote: Why the ctypes version return 'PERMANENT' instead of 'user1'? Glynn Clements wrote: The $GISRC file is read the first time that an environment lookup is made. There is no way to force it to be re-read. This means that I can't use instructions like # retrieve existing

Re: [GRASS-dev] G__getenv return different results from ctypes and from GRASS modules

2013-05-31 Thread Glynn Clements
Nikos Alexandris wrote: Why the ctypes version return 'PERMANENT' instead of 'user1'? Glynn Clements wrote: The $GISRC file is read the first time that an environment lookup is made. There is no way to force it to be re-read. This means that I can't use instructions like [...]

Re: [GRASS-dev] G__getenv return different results from ctypes and from GRASS modules

2013-05-30 Thread Anna Petrášová
Hi, On Thu, May 30, 2013 at 3:29 PM, Pietro peter.z...@gmail.com wrote: Hi all, Nikos A. found a strange behaviour... that I'm not able to understand... I'm in the North Carolina (PERMANENT): {{{ In [1]: import grass.lib.gis as libgis # import the ctypes In [2]: !g.mapset -p # look

Re: [GRASS-dev] G__getenv return different results from ctypes and from GRASS modules

2013-05-30 Thread Glynn Clements
Pietro wrote: Why the ctypes version return 'PERMANENT' instead of 'user1'? The $GISRC file is read the first time that an environment lookup is made. There is no way to force it to be re-read. -- Glynn Clements gl...@gclements.plus.com ___