From 76c6a5327400ff10fa3cf002875ba6a87a0b40ea Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 14 Jan 2015 08:02:49 -0600 Subject: [PATCH] Fix missing expanduser on chdir value --- commands/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/command.py b/commands/command.py index 50d329199c5..6baf35922c2 100644 --- a/commands/command.py +++ b/commands/command.py @@ -178,6 +178,7 @@ def main(): module.fail_json(rc=256, msg="no command given") if chdir: + chdir = os.path.abspath(os.path.expanduser(chdir)) os.chdir(chdir) if creates: