-
Notifications
You must be signed in to change notification settings - Fork 159
Allow Path in substitutions, instead of requiring cast to str #873
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
Allow Path in substitutions, instead of requiring cast to str #873
Conversation
|
@InvincibleRMC FYI. Feel free to review too. |
InvincibleRMC
left a comment
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.
Besides @christophebedard comment lgtm.
a2e655f to
a2a1044
Compare
|
Rebased after #868 and resolved conflicts |
Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
c32fe49 to
6106d28
Compare
|
Pulls: #873 |
Co-authored-by: Christophe Bedard <[email protected]> Signed-off-by: Emerson Knapp <[email protected]>
|
Pulls: #873 |
|
@Mergifyio backport humble jazzy kilted |
✅ Backports have been created
|
Signed-off-by: Emerson Knapp <[email protected]> (cherry picked from commit 49bcf2d) # Conflicts: # launch/launch/substitutions/python_expression.py # launch_xml/test/launch_xml/test_executable.py
Signed-off-by: Emerson Knapp <[email protected]> (cherry picked from commit 49bcf2d) # Conflicts: # launch_xml/test/launch_xml/test_executable.py
Signed-off-by: Emerson Knapp <[email protected]> (cherry picked from commit 49bcf2d)
launch/launch/launch_description_sources/python_launch_file_utilities.py
Show resolved
Hide resolved
[kilted] Allow Path in substitutions, instead of requiring cast to str (backport #873)
… (backport #873) (#927) * Allow Path in substitutions, instead of requiring cast to str (#873) Signed-off-by: Emerson Knapp <[email protected]> (cherry picked from commit 49bcf2d) Signed-off-by: Emerson Knapp <[email protected]> Co-authored-by: Emerson Knapp <[email protected]> Co-authored-by: Emerson Knapp <[email protected]>
…r (backport #873) (#926) * Allow Path in substitutions, instead of requiring cast to str (#873) Signed-off-by: Emerson Knapp <[email protected]> (cherry picked from commit 49bcf2d) Signed-off-by: Emerson Knapp <[email protected]> Co-authored-by: Emerson Knapp <[email protected]> Co-authored-by: Emerson Knapp <[email protected]>
Closes #805
Closes robograph-project/planning#12
Replaces #790
Related to #868
Allow passing
pathlib.Pathobjects directly into contexts expecting aSubstitution, for more natural modern pythonic usage. For exampleIncludeLaunchDescription(Path(__file__).parent / 'file_in_this_dir_launch.yaml'))As part of this change, stop doing
str(Path)casts everywhere it's done for this reason.