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

Always accept posix paths in LaunchDescriptionSource #269

Closed

Conversation

ivanpauno
Copy link
Member

On Linux/Mac, LaunchDescriptionSource will work as before.
On Windows:

  • LaunchDescriptionSource will still accept paths in the windows way(e.g.: 'path\\to\\file').
  • Will also accept path in the posix style (e.g. 'path/to/file').

It will avoid unnecessary usage of os.path.join or pathlib.Path in many launch files.
It will also allow always using posix style in the new launch xml and yaml formats. I can do another workaround for that, but this seems like a better change.

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno added the enhancement New feature or request label Jul 9, 2019
@ivanpauno ivanpauno requested a review from wjwwood July 9, 2019 14:29
@ivanpauno ivanpauno self-assigned this Jul 9, 2019
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending green CI

@ivanpauno
Copy link
Member Author

The three loaders used were actually accepting both kind of paths (python loading machinery, xml loader, yaml loader).
I will close it, as it's not actually needed.

@ivanpauno ivanpauno closed this Jul 16, 2019
@ivanpauno ivanpauno deleted the ivanpauno/launch-description-source-posix-path branch July 26, 2019 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants