$HOSTNAME not in os.environ?

Grant Edwards grante at visi.com
Fri Sep 1 21:05:43 CEST 2006

On 2006-09-01, slinkp at gmail.com <slinkp at gmail.com> wrote:
> Can anybody explain this one?

>>>> print os.getenv('HOSTNAME')
> None
> pw at kermit ~ $ echo $HOSTNAME
> kermit

Perhaps the HOSTNAME variable isn't exported?

Grant Edwards                   grante             Yow!  All right, you
                                  at               degenerates! I want this
                               visi.com            place evacuated in 20

More information about the Python-list mailing list