Dennis Lee Bieber wrote:
> The Amiga did have a means for such... It differentiated between
> local and global environment variables. Locals were kept in a process
> memory structure and behaved as they do on most other OSs... Globals,
> however, were short files maintained in ENV: (a logical name
Sathyaish wrote:
> In which physical file are the python environmental variables located?
> I know I can access them using the:
>
>
> os.environ.get('PYTHONSTARTUP')
>
> or
>
> os.environ.get('PYTHONPATH')
>
>
> to get their values. But out of the program, if I need to look at them
> and alte
I recall now, the shells in Unix - a child inherited the variables
declared in its parent but not vice-versa. It works the same way in
DOS. So, I wasn't seeing it clearly earlier. I am seeing it clearly
now. I was imagining that the PYTHONPATH had some default value on
installation and was expectin
Sathyaish wrote:
> What's the deal with environmental variables? Are they specific to an
> interpreter session?
they're copied from the parent process when a new process is started,
and any changes to them are local to the process.
> That shouldn't be.
that's how environment variables work, on
Sathyaish wrote:
> What's the deal with environmental variables? Are they specific to an
> interpreter session? That shouldn't be.
If you think that then complain to Microsoft, or even the people who
developed Unix since that is what Microsoft based their environment
variables on.
Environment
> was what I got. I checked the at DOS prompt (cmd) for PYTHONSTARTUP,
> and I got an 'unrecognized program/command/batch file' interrupt.
>
> What's the deal with environmental variables? Are they specific to an
> interpreter session? That shouldn't be.
Yes they are - and yes, it should be that
Thanks for the replies.
I am trying to have a startup file execute everytime I launch the
interpreter. So, for a test, I wrote a small file I called
"Sathyaish.py". The contents of the file were simply:
# ! This is my new start-up file.
print "Sathyaish is the best."
Then, in the interpreter,
Sathyaish wrote:
> In which physical file are the python environmental variables located?
> I know I can access them using the:
>
>
> os.environ.get('PYTHONSTARTUP')
>
> or
>
> os.environ.get('PYTHONPATH')
>
>
> to get their values. But out of the program, if I need to look at them
> and alter the
Sathyaish wrote:
> In which physical file are the python environmental variables located?
> I know I can access them using the:
>
>
> os.environ.get('PYTHONSTARTUP')
>
> or
>
> os.environ.get('PYTHONPATH')
>
>
> to get their values. But out of the program, if I need to look at them
> and alt