[Python-checkins] r59860 - python/trunk/Doc/using/windows.rst

georg.brandl python-checkins at python.org
Tue Jan 8 20:42:30 CET 2008


Author: georg.brandl
Date: Tue Jan  8 20:42:30 2008
New Revision: 59860

Modified:
   python/trunk/Doc/using/windows.rst
Log:
Better method for associating .py files with the interpreter.


Modified: python/trunk/Doc/using/windows.rst
==============================================================================
--- python/trunk/Doc/using/windows.rst	(original)
+++ python/trunk/Doc/using/windows.rst	Tue Jan  8 20:42:30 2008
@@ -188,16 +188,17 @@
 startup.
 
 You can also make all ``.py`` scripts execute with :program:`pythonw.exe`,
-setting this through the usual facilites, for example (names might differ,
-depending on your version of Windows):
-
-#. Open the context menu of a :file:`{*}.py` file.
-#. Click :menuselection:`Open with...`.
-#. Choose the interpreter of your choice (utilize :guilabel:`Other...` or
-   :guilabel:`Choose Program...` if it is not in the list of default programs).
-#. Check :guilabel:`Always open files with this program`.
-#. Click :guilabel:`OK`.
+setting this through the usual facilites, for example (might require
+administrative rights):
 
+#. Launch a command prompt.
+#. Associate the correct file group with ``.py`` scripts::
+   
+      assoc .py=Python.File
+
+#. Redirect all Python files to the new executable::
+   
+      ftype Python.File=C:\Path\to\pythonw.exe "%1" %*
 
 
 Additional modules


More information about the Python-checkins mailing list