Closed cottsay closed 3 years ago
remove the shebang, make the script not executable, and add a
console_scripts
entrypoint in thesetup.py
Done. I split it into three commits. The first resolves a ROS 2 bug, the second does the move, and the third fixes up the script as an entry point. We should rebase-merge this to preserve the change history of display_urdf
.
I don't think any changes are needed in ROS 1
You're right, I forgot about that. Good call - no changes necessary for ROS 1.
@cottsay Friendly ping here; I think this is close to getting done, with just a couple more nits to fix from @sloretz .
Okay, I dropped the argv
stuff. Again, please rebase-merge this PR when you're happy with it - I updated the commits to include a reference to this PR so they look good when rebase-merged.
I'm going to go ahead and merge this, thanks for the patch @cottsay
On many platforms, the unversioned python executable is not Python 2. A better solution here would be to change this package to use an entry point, as shebang python scripts don't work correctly on Windows.
This same change applies to Noetic, but there isn't a Noetic-specific branch to make the change against.