From 5d04b372a7347613b2312f5e0cdb4357dd423926 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Fri, 20 Dec 2024 17:03:27 +0000 Subject: [PATCH] Undo substitution_args change, as these are skipped in bazel now Signed-off-by: Michael Carroll --- xacro/substitution_args.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/xacro/substitution_args.py b/xacro/substitution_args.py index 1d5d171..789f312 100644 --- a/xacro/substitution_args.py +++ b/xacro/substitution_args.py @@ -137,13 +137,7 @@ def _dirname(resolved, a, args, context): def _eval_find(pkg): - try: - from ament_index_python.packages import get_package_share_directory - except ModuleNotFoundError: - raise SubstitutionException( - '$(find pkg) requires ament_index_python, but it was not found' - ) - + from ament_index_python.packages import get_package_share_directory return get_package_share_directory(pkg)