Am 31.10.2014 um 02:22 schrieb Artur Bercik:
I have to set environmental variable in my windows PC as follows:
variable name: GISBASE
value: C:\GRASS-64
Is it possible to set it from python?
import sys
sys.path.append(C:\\GRASS-64)
But how to give variable name? I have to set
Artur Bercik vbubbl...@gmail.com wrote:
I have to set several variables so it would be easier if I could set them
from Python.
You can write a Python-script that generates a .bat file (in your %TEMP-dir?).
And run this .bat file when Python ends. Put it all in an alias or another .bat
file.
On 10/30/2014 10:40 PM, Artur Bercik wrote:
On Fri, Oct 31, 2014 at 11:30 AM, Zachary Ware
zachary.ware+pyl...@gmail.com wrote:
On Thursday, October 30, 2014, Artur Bercik vbubbl...@gmail.com wrote:
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it
On 31/10/2014 02:36, Rustom Mody wrote:
On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:
On Thursday, October 30, 2014, Artur Bercik vbub...@gmail.com wrote:
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it permanently.
I have to set
On Fri, Oct 31, 2014 at 1:11 PM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
On Thu, 30 Oct 2014 22:00:33 -0500, Zachary Ware
zachary.ware+pyl...@gmail.com declaimed the following:
From a Command Prompt, do 'help setx' for details on how to use setx.
Really? G
I have to set environmental variable in my windows PC as follows:
variable name: GISBASE
value: C:\GRASS-64
Is it possible to set it from python?
import sys
sys.path.append(C:\\GRASS-64)
But how to give variable name? I have to set both the variable name and
value.
Thanks in the advance.
On 10/30/2014 09:22 PM, Artur Bercik wrote:
I have to set environmental variable in my windows PC as follows:
variable name: GISBASE
value: C:\GRASS-64
Is it possible to set it from python?
Which Python? I'll have to assume 3.x
import sys
sys.path.append(C:\\GRASS-64)
But how to give
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it permanently.
I have to set several variables so it would be easier if I could set them
from Python.
Hearing the solution.
On Fri, Oct 31, 2014 at 10:50 AM, Dave Angel da...@davea.name wrote:
On 10/30/2014 09:22
On Thursday, October 30, 2014, Artur Bercik vbubbl...@gmail.com wrote:
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it permanently.
I have to set several variables so it would be easier if I could set them
from Python.
Depending on how permanently you
On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:
On Thursday, October 30, 2014, Artur Bercik vbub...@gmail.com wrote:
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it permanently.
I have to set several variables so it would be
could you please elaborate 'setx ...'?
On Fri, Oct 31, 2014 at 11:30 AM, Zachary Ware
zachary.ware+pyl...@gmail.com wrote:
On Thursday, October 30, 2014, Artur Bercik vbubbl...@gmail.com wrote:
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it permanently.
I have to set several variables so it would be easier if I could set them
from Python.
On Fri, Oct 31, 2014 at 11:36 AM, Rustom Mody rustompm...@gmail.com wrote:
On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:
On Thursday, October 30, 2014, Artur Bercik vbub...@gmail.com
On Friday, October 31, 2014 7:33:43 AM UTC+5:30, Artur Bercik wrote:
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it permanently.
I have to set several variables so it would be easier if I could set them
from Python.
regedit is scriptable
On Thu, Oct 30, 2014 at 9:40 PM, Artur Bercik vbubbl...@gmail.com wrote:
could you please elaborate 'setx ...'?
From a Command Prompt, do 'help setx' for details on how to use setx.
Rustom's suggestion of using regedit is going to be far easier than
using _winreg (which probably shouldn't even
14 matches
Mail list logo