getting the current userid with Python

Mr. Neutron nicktsocanos at charter.net
Wed Aug 21 13:47:48 EDT 2002


On Wed, 21 Aug 2002 13:38:23 -0400, Danathar wrote:

> Is there a direct method for getting the current userid in Python? I am

import os

print os.environ['USER']



More information about the Python-list mailing list