Skip to content

Commit

Permalink
Undo substitution_args change, as these are skipped in bazel now
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Dec 20, 2024
1 parent d9188bc commit 5d04b37
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions xacro/substitution_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 5d04b37

Please sign in to comment.