Mercurial > public > src > rhodecode
changeset 2797:26fac32c215d beta
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
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 06 Aug 2012 22:15:01 +0200 |
parents | 78694f9acd31 |
children | 1cb10d6abd7b |
files | rhodecode/lib/vcs/utils/paths.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/utils/paths.py Sun Aug 05 00:56:00 2012 +0200 +++ b/rhodecode/lib/vcs/utils/paths.py Mon Aug 06 22:15:01 2012 +0200 @@ -29,8 +29,9 @@ 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 ''