ansible: correct sys.path fixup.

wip-fakessh-exit-status
David Wilson 7 years ago
parent 3ddbf1a503
commit 485e489aa2

@ -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:
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

Loading…
Cancel
Save