From 85529d4022ca0802b0d6ae06e1d4e64fd2be8883 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Wed, 29 May 2013 17:05:11 +0200 Subject: [PATCH] No need to expanduser() command's chdir argument twice --- commands/command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/command b/commands/command index e996c0c4a7f..ad6ed6c171e 100644 --- a/commands/command +++ b/commands/command @@ -95,7 +95,7 @@ def main(): module.fail_json(rc=256, msg="no command given") if chdir: - os.chdir(os.path.expanduser(chdir)) + os.chdir(chdir) if creates: # do not run the command if the line contains creates=filename