Commit 485e489a authored by David Wilson's avatar David Wilson

ansible: correct sys.path fixup.

parent 3ddbf1a5
...@@ -48,7 +48,7 @@ try: ...@@ -48,7 +48,7 @@ try:
import ansible_mitogen import ansible_mitogen
except ImportError: except ImportError:
base_dir = os.path.dirname(__file__) 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 del base_dir
from ansible_mitogen.connection import Connection from ansible_mitogen.connection import Connection
......
...@@ -48,7 +48,7 @@ try: ...@@ -48,7 +48,7 @@ try:
import ansible_mitogen import ansible_mitogen
except ImportError: except ImportError:
base_dir = os.path.dirname(__file__) 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 del base_dir
from ansible_mitogen.strategy import StrategyModule from ansible_mitogen.strategy import StrategyModule
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment