diff --git a/playbooks/inventory/dynamic_inventory.py b/playbooks/inventory/dynamic_inventory.py index a1ddf6b39c..14f3d50c54 100755 --- a/playbooks/inventory/dynamic_inventory.py +++ b/playbooks/inventory/dynamic_inventory.py @@ -19,7 +19,7 @@ import argparse import os import sys -current_path = os.path.abspath(os.path.dirname(__file__)) +current_path = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) lib_path = os.path.join(current_path, '..', '..', 'lib') sys.path.append(lib_path)