-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional changes to support ament_python pkgs #49
Conversation
Signed-off-by: Shane Loretz <sloretz@google.com>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
6de2f28
to
dd3c982
Compare
def esc_backslash(path): | ||
"""Escape backslashes to support Windows paths in strings.""" | ||
return path.replace('\\', '\\\\') if path else path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't instantiating pathlib.Path
objects handle this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that idea but think that this is going into the config of the next stage where it is then needed to be escaped.
I'd suggest considering switching to this as an enhancement for the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've opened a ticket to follow up on this #50
def esc_backslash(path): | ||
"""Escape backslashes to support Windows paths in strings.""" | ||
return path.replace('\\', '\\\\') if path else path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that idea but think that this is going into the config of the next stage where it is then needed to be escaped.
I'd suggest considering switching to this as an enhancement for the future.
This PR is a follow up to #28
Should probably merge #47 in first.
It closes #48 by addressing all remaining issues (except the bonus item).