From d63221094145210a6046c1c0803acf03f9aa4194 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Mon, 11 Feb 2013 23:43:30 +0100 Subject: [PATCH] Allow using other users' home directories as well --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index fe4e55c227d..50d9f15c5f7 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -186,7 +186,7 @@ def path_dwim(basedir, given): if given.startswith("/"): return given - elif given.startswith("~/"): + elif given.startswith("~"): return os.path.expanduser(given) else: return os.path.join(basedir, given)