Re: Problem using os.environ.get

2007-11-14 Thread J. Robertson
[EMAIL PROTECTED] wrote: > > > # echo $HOSTTYPE > x86_64 > # python import os print os.environ.get('HOSTTYPE') > None > > If I do the same thing with a different variable (XILINX, in this > case), it works fine. bash documentation indicates that HOSTTYPE (and a few others: OSTYPE, MA

Re: Problem using os.environ.get

2007-11-14 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hello, > > I am trying to retrieve a linux environment variable using > os.environ.get, however it does not appear to be working properly. It > returns none for a variable that does, in fact exist. > > # echo $HOSTTYPE > x86_64 > # python import os print os.