ros / genmsg

Standalone Python library for generating ROS message and service data structures for various languages
http://wiki.ros.org/genmsg
29 stars 74 forks source link

Properly escape path before using in regex #95

Closed kyrofa closed 4 years ago

kyrofa commented 4 years ago

Currently, the pattern used to ensure __init__.pys are installed for package subdirectories (e.g. msg, srv) uses an un-escaped path. As a result, any special characters in any part of the path can throw off the regex and cause these files to not be properly installed.

Before using the path in the pattern, properly escape those special characters.