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