diff --git a/andino_description/test/test_xacro_processing.py b/andino_description/test/test_xacro_processing.py index 2610f5e3..578c7c7a 100644 --- a/andino_description/test/test_xacro_processing.py +++ b/andino_description/test/test_xacro_processing.py @@ -1,10 +1,13 @@ import os import pytest import xacro +from ament_index_python.packages import get_package_share_directory + +andino_description_pkg = get_package_share_directory("andino_description") def test_xacro_processing(): # Get the file path - xacro_file_path = os.path.join(os.path.dirname(__file__), '..', 'urdf', 'andino.urdf.xacro') + xacro_file_path = os.path.join(andino_description_pkg, 'urdf', 'andino.urdf.xacro') # Test xacro processing try: