fix PATH hack used in test

This commit is contained in:
AlanCoding 2018-04-13 08:44:39 -04:00
parent 8f6688a84b
commit 6f9ff54430
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -36,7 +36,7 @@ with mock.patch.dict(os.environ, {'ANSIBLE_STDOUT_CALLBACK': CALLBACK,
from ansible.vars.manager import VariableManager
# Add awx/lib to sys.path so we can use the plugin
path = os.path.abspath(os.path.join(PLUGINS, '..', '..'))
path = os.path.abspath(os.path.join(PLUGINS, '..', '..', 'lib'))
if path not in sys.path:
sys.path.insert(0, path)