Skip to content
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

Merged
merged 10 commits into from
Mar 28, 2023

Conversation

Yadunund
Copy link
Collaborator

@Yadunund Yadunund commented Mar 22, 2023

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).

Signed-off-by: Yadunund <[email protected]>
Comment on lines +30 to +32
def esc_backslash(path):
"""Escape backslashes to support Windows paths in strings."""
return path.replace('\\', '\\\\') if path else path
Copy link
Contributor

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?

Copy link
Member

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.

Copy link
Collaborator Author

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

Comment on lines +30 to +32
def esc_backslash(path):
"""Escape backslashes to support Windows paths in strings."""
return path.replace('\\', '\\\\') if path else path
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checklist for supporting document generation for ament_python packages
5 participants