From 2163a24a12f6dd8d1be6525bcda2370838ed1030 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 13 Apr 2016 14:20:01 -0700 Subject: [PATCH] Fix when debug commands are run on the wrapper and the wrapper as a file in the current directory --- lib/ansible/executor/module_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/module_common.py b/lib/ansible/executor/module_common.py index 50b4947b59..fb9eb04d4c 100644 --- a/lib/ansible/executor/module_common.py +++ b/lib/ansible/executor/module_common.py @@ -141,7 +141,7 @@ def debug(command, zipped_mod, json_params): # files you've edited instead of the actual zipped module. # Okay to use __file__ here because we're running from a kept file - basedir = os.path.dirname(__file__) + basedir = os.path.abspath(os.path.dirname(__file__)) if command == 'explode': # transform the ZIPDATA into an exploded directory of code and then # print the path to the code. This is an easy way for people to look