How to make a python script as executable [closed]

asked 2016-09-08 15:55:03 -0500

Kishore Kumar gravatar image

updated 2022-01-22 16:16:33 -0500

Evgeny gravatar image

I have a python script downloaded from github which suits my requirement, when i follow the steps followed to build the .cpp file it fails to build the script as executable. How to make the python script as executable?

Direct me to the tutorials or any knowledge base.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by tfoote
close date 2016-09-08 16:14:16.503184

Comments

This is not a ROS releated question. I recommend searching for this on a place like stackoverflow.

tfoote gravatar image tfoote  ( 2016-09-08 16:14:06 -0500 )edit

It is ros related because i want to build it inside ROS workspace and run the node with rosrun command. There is python nodes for ROS, I just want to build it catkin_make. Can you please reopen it?

Kishore Kumar gravatar image Kishore Kumar  ( 2016-09-08 17:03:14 -0500 )edit

You don't need to build a python script. Please consider searching before you ask a question.

tfoote gravatar image tfoote  ( 2016-09-08 17:30:18 -0500 )edit
1

chmod +x file.py

alienmon gravatar image alienmon  ( 2016-09-08 20:54:33 -0500 )edit