Run a .py file

Mouchasounet Posted messages 45 Status Membre -  
 anonymous -
Hello,

I downloaded a script from the internet, so I opened it with Python since it is in .py format, and I would like to run the program. What should I do?
Configuration: Windows XP Firefox 2.0.0.6

20 réponses

sebsauvage Posted messages 33284 Registration date   Status Modérateur Last intervention   15 684
 
Open an MS-Dos window,
type: python monprogramme.py

If it doesn't work, you need to add Python to the PATH (environment variable).
12