mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -03:30
fix PATH hack used in test
This commit is contained in:
@@ -36,7 +36,7 @@ with mock.patch.dict(os.environ, {'ANSIBLE_STDOUT_CALLBACK': CALLBACK,
|
|||||||
from ansible.vars.manager import VariableManager
|
from ansible.vars.manager import VariableManager
|
||||||
|
|
||||||
# Add awx/lib to sys.path so we can use the plugin
|
# 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:
|
if path not in sys.path:
|
||||||
sys.path.insert(0, path)
|
sys.path.insert(0, path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user