Changeset - 26fac32c215d
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-08-06 22:15:01
marcin@python-works.com
Fixed issue with get_user_home function returned None, and some code didn't like that. We really don't need this since it's VCS cli
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/utils/paths.py
Show inline comments
 
@@ -26,11 +26,12 @@ def get_dir_size(path):
 
            try:
 
                size += os.path.getsize(os.path.join(path, f))
 
            except OSError:
 
                pass
 
    return size
 

	
 

	
 
def get_user_home():
 
    """
 
    Returns home path of the user.
 
    """
 
    return os.getenv('HOME', os.getenv('USERPROFILE'))
 
    return os.getenv('HOME', os.getenv('USERPROFILE')) or ''
0 comments (0 inline, 0 general)