Pardon me for being such a noob but I have been unable to find any documentation at all that describes how to run a python program. Can someone help me?
Also, assuming I have more than one python distribution installed, can I pick which distribution will be used? (I have Python 2.4.3 installed but I also use ppython from the Panda3D distribution).
Open up a command prompt or command shell.
Use the 'cd' command to choose what directory your Python program is.
Type in 'python file.py' and hit enter, where 'file' is replaced by the name of your .py file.
If python is not on your path, you may need to provide something like 'c:\python24\python file.py', if you used the default Python installation path on Windows.
If you don't want to have your program attached to a console, you can use 'pythonw file.py'.
If you need to have other similar questions answered, there is the firstname.lastname@example.org mailing list.
I already know how to do that, I have been using Python for quite a while now. I want to be able to run the program I am editing in PyPE from within PyPE. It just seems that there would be a quick way to do this in PyPE by clicking on a button of some sort.
For example, I have a customized M$ Developer Studio V6 to have an icon on the toolbar that I can click on and run the code in the current window.
There is macro in the 'macros/samples' subdirectory that offers the functionality.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.