Re: [GRASS-user] Define Global Variables and use them in a Python script

2010-07-07 Thread Glynn Clements
Kim Besson wrote: > Hi Glynn and rest of the list > I have tested this method by creating a config.py and a demo-example of > config and I'm not being able to use this solution. Maybe I'm not fully > understanding it (never used classes in Python): > 1- I create a config1.py file in a working Pyt

Re: [GRASS-user] Define Global Variables and use them in a Python script

2010-07-06 Thread Kim Besson
Hi Glynn and rest of the list I have tested this method by creating a config.py and a demo-example of config and I'm not being able to use this solution. Maybe I'm not fully understanding it (never used classes in Python): 1- I create a config1.py file in a working Python directory 2- I added this

Re: [GRASS-user] Define Global Variables and use them in a Python script

2010-07-06 Thread Glynn Clements
Kim Besson wrote: > As soon as I arrive to the office I will give it a try. Thought that I could > have global variables such as LC_LANGUAGES and other GRASS_GLOBAL VARIABLES. > Is it possible to define them in Init.sh (or .bat) and be used in Python > Scripts? I think you're referring to enviro

Re: [GRASS-user] Define Global Variables and use them in a Python script

2010-07-06 Thread Kim Besson
Hello Glynn As soon as I arrive to the office I will give it a try. Thought that I could have global variables such as LC_LANGUAGES and other GRASS_GLOBAL VARIABLES. Is it possible to define them in Init.sh (or .bat) and be used in Python Scripts? Best regards, Kim 2010/7/5 Glynn Clements > > K

Re: [GRASS-user] Define Global Variables and use them in a Python script

2010-07-05 Thread Glynn Clements
Kim Besson wrote: > I've been testing and "kind of " using GRASS-Python scripts for nearly 2 > weeks and it's being great. So far no major issues but now I need to do > something: > - From a text file (ASCII) I need to read a few variables and make them > global bariables I mean, be available and

[GRASS-user] Define Global Variables and use them in a Python script

2010-07-05 Thread Kim Besson
Hi there I've been testing and "kind of " using GRASS-Python scripts for nearly 2 weeks and it's being great. So far no major issues but now I need to do something: - From a text file (ASCII) I need to read a few variables and make them global bariables I mean, be available and defined for a huge