os.environ => invalid token

Peter Torstenson p.t at iname.com
Wed Aug 11 10:59:27 EDT 1999


I tried the os.environ['HOME'] statement from the libref. man to get a
string with the home directory.

print os.environ['HOME']

gives : invalid token.

What do I do wrong? How do I get the home directory?


/Peter Thorstenson







More information about the Python-list mailing list