From: Aaron Bentley Date: Mon, 30 Jan 2006 15:51:14 +0000 (-0500) Subject: Added creator patch from Belchenko X-Git-Tag: 1.0.0~226 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=979fe49abcd905ac9db403e665ea442376a061c3;p=be.git Added creator patch from Belchenko --- diff --git a/libbe/names.py b/libbe/names.py index 19bc2a4..cbcfbf8 100644 --- a/libbe/names.py +++ b/libbe/names.py @@ -16,9 +16,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import commands import os +import sys + def uuid(): return commands.getoutput('uuidgen') def creator(): - return os.environ["LOGNAME"] + if sys.platform != "win32": + return os.environ["LOGNAME"] + else: + return os.environ["USERNAME"]