Reading Windows (NT/2000/XP) system and user environment variables

Gerrit Holl gerrit at nl.linux.org
Thu Oct 2 16:03:24 EDT 2003


<quote name="Jim Potts" date="1065120522" email="jim.potts at sbcglobal.net">
> What is the best way in Python version 2.x to read/get Windows (nt/2000/xp)
> system and user environment variables?
</quote>

import os
os.environ

See also the documention on the os module.

Gerrit.

-- 
Mozilla _is_ the web: it grows faster than you can download it.
1011001 1101111 1110101 1110010 1110011 0101100
1000111 1100101 1110010 1110010 1101001 1110100





More information about the Python-list mailing list