Skip to content

Commit

Permalink
Avoid adding duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 21, 2021
1 parent 9b5935c commit 9b2c06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/catkin_python_setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function(catkin_python_setup)
endif()
# Extend PACKAGE_PYTHONPATH with current pkg's path
get_filename_component(path ${pkg_dir} PATH)
list(APPEND PACKAGE_PYTHONPATH ${CMAKE_CURRENT_SOURCE_DIR}/${path})
list_append_deduplicate(PACKAGE_PYTHONPATH ${CMAKE_CURRENT_SOURCE_DIR}/${path})
configure_file(${catkin_EXTRAS_DIR}/templates/__init__.py.in ${target_init_file} @ONLY)
endforeach()
endif()
Expand Down

0 comments on commit 9b2c06f

Please sign in to comment.