# HG changeset patch # User Marcin Kuzminski # Date 2012-08-06 22:15:01 # Node ID 26fac32c215d3a096532797d896cbe126ad633b3 # Parent 78694f9acd31d921dd40492b418e1393f78a3723 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 diff --git a/rhodecode/lib/vcs/utils/paths.py b/rhodecode/lib/vcs/utils/paths.py --- a/rhodecode/lib/vcs/utils/paths.py +++ b/rhodecode/lib/vcs/utils/paths.py @@ -29,8 +29,9 @@ def get_dir_size(path): 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 ''