On Wed, 26 Mar 2008 13:05:55 -0300, Gabriel Genellina wrote: > En Wed, 26 Mar 2008 11:12:21 -0300, waltbrad <[EMAIL PROTECTED]> > escribió: > >> Stumbling through Mark Lutz's "Programming Python 3rd", he gives an >> example of a program that will automatically configure environment >> settings and launch other programs. Then he gives an example of >> running this program. On his command line he types: >> >> C:\...\PP3E>Launcher.py >> >> and this begins the program. Doesn't work for me. I have to type: >> >> C:\...\PP3E>python Launcher.py >> >> Is this a typo on his part or has he configured his settings in such a >> way that the command line will automatically associate the extension >> with the program? (If so, he didn't mention this in his book). > > I think it is an option in the installer, to associate or not Python to > the .py extension. > You could reinstall Python paying attention to the options, or repair > the association as described in this thread: > http://groups.google.com/group/comp.lang.python/browse_thread/thread/ b1d0fd05b3615057/
See also the official (development version of the) documentation with the new section "Using Python". "Using Python on Windows" covers exactly this topic: http://docs.python.org/dev/using/windows.html#executing-scripts HTH, -- Robert "Stargaming" Lehmann -- http://mail.python.org/mailman/listinfo/python-list