Skip to content

Conversation

@Praveendwivedi
Copy link
Contributor

@Praveendwivedi Praveendwivedi commented Apr 5, 2021

On googling 'how to make python file executable', didn't get the expected result. For beginners, it can be time-saving

Description

Added an example command which tells the reader how to make python file executable

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • While waiting for someone to review your request, please consider reviewing another open pull request to support the maintainers

on googling 'how to make python file executable', didn't get the expected result. For beginners, it can be time-saving
@welcome
Copy link

welcome bot commented Apr 5, 2021

Thanks for helping in improving MoveIt and open source robotics!

Copy link
Contributor

@felixvd felixvd left a comment

Choose a reason for hiding this comment

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

This kind of thing may seem dumb, but that's exactly why it's frustrating as a beginner.

@felixvd felixvd changed the title example command to make python script executable Add example to make Python script executable Apr 5, 2021

Now run the Python code directly in the other shell using ``rosrun``.
Note in some instances you may need to make the python script executable: ::
Note that you may need to make the Python script executable (using ``chmod +x /path_to_file/file_name.py``): ::
Copy link
Contributor

Choose a reason for hiding this comment

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

The repository already tracks execution permissions and I can't find a python file without execution permissions in the repository. So I think this is the wrong place for this remark altogether.

But if we keep it nonetheless, I'm happy to add the additional explanation.

I'll deliberately not vote here and leave the decision to the next reviewer.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that's a fair argument too, and I'm good with either of those outcomes.

@Praveendwivedi did you have trouble executing the file or did the comment send you on this Google search for no reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @v4hn & @felixvd for the reviews. I didn't try the tutorial myself, I was just going through the tutorial and came across that comment. Since previously I've also faced such issues, I thought it would be better to include the command too.

As @v4hn clearly pointed out since the execution permissions are already tracked and no such issue is found, the whole comment seems to be redundant to me. What do you think @felixvd ?

I'm not sure if such issue may arise in the future though

@v4hn v4hn added the awaits 2nd review one maintainer approved this request label Apr 6, 2021
@v4hn
Copy link
Contributor

v4hn commented Apr 6, 2021 via email

@Praveendwivedi Praveendwivedi changed the title Add example to make Python script executable Remove unnecessary comment Apr 7, 2021
@v4hn v4hn merged commit d756c93 into moveit:master Apr 7, 2021
@welcome
Copy link

welcome bot commented Apr 7, 2021

Congrats on getting your first MoveIt pull request merged and improving open source robotics!

Abishalini pushed a commit to Abishalini/moveit_tutorials that referenced this pull request Apr 29, 2021
* Remove unnecessary comment

on googling 'how to make python file executable', didn't get the expected result. For beginners, it can be time-saving
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaits 2nd review one maintainer approved this request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants