Skip to content

Commit

Permalink
Fix escaping dot in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 17, 2021
1 parent 3bbad0f commit 47a8eba
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 @@ -84,7 +84,7 @@ function(catkin_python_setup)
set(target_init_file ${CATKIN_DEVEL_PREFIX}/${PYTHON_INSTALL_DIR}/${pkg}/__init__.py)
if(EXISTS ${target_init_file})
file(READ ${target_init_file} file_content)
string(REGEX MATCH "__extended_path *= *'(.*)'\.split" _ "${file_content}")
string(REGEX MATCH "__extended_path *= *'(.*)'\\.split" _ "${file_content}")
set(PACKAGE_PYTHONPATH ${CMAKE_MATCH_1})
endif()
# Extend PACKAGE_PYTHONPATH with current pkg's path
Expand Down

0 comments on commit 47a8eba

Please sign in to comment.