projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db395a3
)
Added creator patch from Belchenko
author
Aaron Bentley
<abentley@panoramicfeedback.com>
Mon, 30 Jan 2006 15:51:14 +0000
(10:51 -0500)
committer
Aaron Bentley
<abentley@panoramicfeedback.com>
Mon, 30 Jan 2006 15:51:14 +0000
(10:51 -0500)
libbe/names.py
patch
|
blob
|
history
diff --git
a/libbe/names.py
b/libbe/names.py
index 19bc2a49f1c282d4c0f4397d142aefac8cbd805a..cbcfbf815d57a61b4d83f09d0f39809d675f821d 100644
(file)
--- 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"]