[pypy-svn] r19853 - pypy/dist/pypy/tool

ericvrp at codespeak.net ericvrp at codespeak.net
Mon Nov 14 11:40:40 CET 2005


Author: ericvrp
Date: Mon Nov 14 11:40:38 2005
New Revision: 19853

Modified:
   pypy/dist/pypy/tool/udir.py
Log:
Fix for getting at the current username. LOGNAME was only set on my machine
with remote login. os.environ['USER'] seems to be available always.


Modified: pypy/dist/pypy/tool/udir.py
==============================================================================
--- pypy/dist/pypy/tool/udir.py	(original)
+++ pypy/dist/pypy/tool/udir.py	Mon Nov 14 11:40:38 2005
@@ -12,7 +12,7 @@
 udir = local.make_numbered_dir(prefix='usession-', keep=3)
 
 try:
-    username = os.environ['LOGNAME']        #linux, et al
+    username = os.environ['USER']           #linux, et al
 except:
     try:
         username = os.environ['USERNAME']   #windows



More information about the Pypy-commit mailing list