"Kayvan Sarikhani" <ksarikh...@gmail.com> wrote

For the record, $LOGNAME works fine as a variable...it's a standard env
variable in Linux to display the current user's username.

In that case os.getenv('LOGNAME') should retrieve it for you

HTH,


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to