From ee68122d74b0105026064c51d9866667265b91df Mon Sep 17 00:00:00 2001 From: Sven Anders Date: Fri, 6 Jan 2023 14:48:35 +0100 Subject: [PATCH] use sys.executable as path to python, this helps if use use a venv for ansible --- plugins/lookup/keepass.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/lookup/keepass.py b/plugins/lookup/keepass.py index 6ce4d43..4496e5a 100644 --- a/plugins/lookup/keepass.py +++ b/plugins/lookup/keepass.py @@ -93,8 +93,7 @@ class LookupModule(LookupBase): os.open(lock_file_, os.O_RDWR) except FileNotFoundError: cmd = [ - "/usr/bin/env", - "python3", + sys.executable, os.path.abspath(__file__), var_dbx, socket_path,