Added creator patch from Belchenko
authorAaron Bentley <abentley@panoramicfeedback.com>
Mon, 30 Jan 2006 15:51:14 +0000 (10:51 -0500)
committerAaron Bentley <abentley@panoramicfeedback.com>
Mon, 30 Jan 2006 15:51:14 +0000 (10:51 -0500)
libbe/names.py

index 19bc2a49f1c282d4c0f4397d142aefac8cbd805a..cbcfbf815d57a61b4d83f09d0f39809d675f821d 100644 (file)
 #    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"]