[Treepkg-commits] r283 - branches/scratchbox/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 16 11:14:53 CEST 2010


Author: bricks
Date: 2010-04-16 11:14:52 +0200 (Fri, 16 Apr 2010)
New Revision: 283

Modified:
   branches/scratchbox/treepkg/util.py
Log:
added getuser function to retrun the current user


Modified: branches/scratchbox/treepkg/util.py
===================================================================
--- branches/scratchbox/treepkg/util.py	2010-04-16 08:46:29 UTC (rev 282)
+++ branches/scratchbox/treepkg/util.py	2010-04-16 09:14:52 UTC (rev 283)
@@ -151,3 +151,7 @@
     def get(self):
         return os.path.join(getattr(self, dir_attr), filename)
     return property(get)
+
+def getuser():
+    """Returns the login name of the current user owning the proccess"""
+    return pwd.getpwuid(os.getuid())[0]



More information about the Treepkg-commits mailing list