changeset 361:f45456cdfb87

Added common.misc.homedir()
author Joseph Turian <turian@iro.umontreal.ca>
date Wed, 02 Jul 2008 23:56:51 -0400
parents 0e3af3c53ac7
children 00d57d3f33eb
files common/misc.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common/misc.py	Wed Jul 02 16:10:00 2008 -0400
+++ b/common/misc.py	Wed Jul 02 23:56:51 2008 -0400
@@ -18,6 +18,10 @@
         raise exceptions.RuntimeError
     return output
 
+def homedir():
+    import os
+    return os.environ["HOME"]
+
 def sign(i, assertions=True):
     """
     + or - 1