diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-01-30 10:51:14 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-01-30 10:51:14 -0500 |
commit | 979fe49abcd905ac9db403e665ea442376a061c3 (patch) | |
tree | 5cf0827fe28839d33a95e8cc612fc1324b6e6136 | |
parent | db395a38b4272a776782a58d06b93051ac6c847d (diff) | |
download | bugseverywhere-979fe49abcd905ac9db403e665ea442376a061c3.tar.gz |
Added creator patch from Belchenko
-rw-r--r-- | libbe/names.py | 7 |
1 files changed, 6 insertions, 1 deletions
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"] |