summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-08 19:42:30 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-08 19:42:30 (GMT)
commit8d10167236c2247bab706780262fbbef38de0099 (patch)
treec1de2b08530afb0c97ea93b57a606093fdbce5cc
parent502d6312db1bb691a6fb479f3df1a445d5b0684d (diff)
downloadcpython-8d10167236c2247bab706780262fbbef38de0099.zip
cpython-8d10167236c2247bab706780262fbbef38de0099.tar.gz
cpython-8d10167236c2247bab706780262fbbef38de0099.tar.bz2
Better method for associating .py files with the interpreter.
-rw-r--r--Doc/using/windows.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst
index 2b52544..1753b6d 100644
--- a/Doc/using/windows.rst
+++ b/Doc/using/windows.rst
@@ -188,16 +188,17 @@ of your Python installation directory). This suppresses the terminal window on
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):
+setting this through the usual facilites, for example (might require
+administrative rights):
-#. 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`.
+#. 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