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
On Fri, Oct 31, 2014 at 1:11 PM, Dennis Lee Bieber
wrote:
> On Thu, 30 Oct 2014 22:00:33 -0500, Zachary Ware
> declaimed the following:
> >From a Command Prompt, do 'help setx' for details on how to use setx.
>
> Really?
>
> C:\Users\Wulfraed\Documents>help setx
> This command is not sup
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 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 i
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 wrote:
Dear Dave Angel
Thanks for your answer.
I am using Python 2.7
I want to set it permanently.
I have to set
"Artur Bercik" 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. E.g. untested:
alia
On Thu, Oct 30, 2014 at 9:40 PM, Artur Bercik 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 be considered as
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 scriptab
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 wrote:
> On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:
> > On Thursday, October 30, 2014, Artur Bercik wrote:
> >
> > Dear Dave Angel
> >
>
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 wrote:
>
>> Dear Dave Angel
>>
>> Thanks for your answer.
>>
>> I am using Python 2.7
>>
>> I want to set it permanently.
On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:
> On Thursday, October 30, 2014, 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
On Thursday, October 30, 2014, 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.
>
Depending on how "permanently" you mean, about
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 wrote:
> On 10/30/2014 09:22 PM, Artur Bercik
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
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.
14 matches
Mail list logo