Wednesday, September 15, 2010

Make a python program executable

I added  #!/usr/bin/python to some python code using the nano editor. Then I made it an executable file using chmod +x GMC.py.  I was able to run it in bash by typing ./GMC.py.

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
Biking helps me to cope with life.