From 49eef4c0adbbe226ade033d5c62544e2a525c3f6 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 2 Mar 2018 19:45:24 +0545 Subject: [PATCH] ansible: correct sys.path fixup. --- ansible_mitogen/plugins/connection/mitogen.py | 2 +- ansible_mitogen/plugins/strategy/mitogen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible_mitogen/plugins/connection/mitogen.py b/ansible_mitogen/plugins/connection/mitogen.py index d9bdc5f6..5ae51ab1 100644 --- a/ansible_mitogen/plugins/connection/mitogen.py +++ b/ansible_mitogen/plugins/connection/mitogen.py @@ -48,7 +48,7 @@ try: import ansible_mitogen except ImportError: base_dir = os.path.dirname(__file__) - sys.path.insert(0, os.path.abspath(os.path.join(base_dir, '../..'))) + sys.path.insert(0, os.path.abspath(os.path.join(base_dir, '../../..'))) del base_dir from ansible_mitogen.connection import Connection diff --git a/ansible_mitogen/plugins/strategy/mitogen.py b/ansible_mitogen/plugins/strategy/mitogen.py index 6572c26f..77d1e06e 100644 --- a/ansible_mitogen/plugins/strategy/mitogen.py +++ b/ansible_mitogen/plugins/strategy/mitogen.py @@ -48,7 +48,7 @@ try: import ansible_mitogen except ImportError: base_dir = os.path.dirname(__file__) - sys.path.insert(0, os.path.abspath(os.path.join(base_dir, '../..'))) + sys.path.insert(0, os.path.abspath(os.path.join(base_dir, '../../..'))) del base_dir from ansible_mitogen.strategy import StrategyModule