PDA

View Full Version : How do I execute .py?



echo $USER
April 2nd, 2006, 04:47 PM
Lets say I made this simple program:

print "Game Over"
raw_input("\n\nPress ENTER to continue.")

And save it as gameOver.py.

How do I then execute it? If I double click on it on my M$ machine a little command prompt screen comes up and I can run the program. If I open it in Linux, it opens with just gedit. Then if i try to open it in bash, it says command not found. How do I execute it like on my M$ box? Thanks for helping a n00b.

Buffalo Soldier
April 2nd, 2006, 04:58 PM
Lets say I made this simple program:

print "Game Over"
raw_input("\n\nPress ENTER to continue.")

And save it as gameOver.py.

How do I then execute it? If I double click on it on my M$ machine a little command prompt screen comes up and I can run the program. If I open it in Linux, it opens with just gedit. Then if i try to open it in bash, it says command not found. How do I execute it like on my M$ box? Thanks for helping a n00b.

You might want to refer to this thread -> http://ubuntuforums.org/showthread.php?t=11009

;)

echo $USER
April 3rd, 2006, 02:49 PM
Thanks for the help.