Kaydet (Commit) 8d101672 authored tarafından Georg Brandl's avatar Georg Brandl

Better method for associating .py files with the interpreter.

üst 502d6312
...@@ -188,16 +188,17 @@ of your Python installation directory). This suppresses the terminal window on ...@@ -188,16 +188,17 @@ of your Python installation directory). This suppresses the terminal window on
startup. startup.
You can also make all ``.py`` scripts execute with :program:`pythonw.exe`, You can also make all ``.py`` scripts execute with :program:`pythonw.exe`,
setting this through the usual facilites, for example (names might differ, setting this through the usual facilites, for example (might require
depending on your version of Windows): administrative rights):
#. Open the context menu of a :file:`{*}.py` file. #. Launch a command prompt.
#. Click :menuselection:`Open with...`. #. Associate the correct file group with ``.py`` scripts::
#. 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`.
assoc .py=Python.File
#. Redirect all Python files to the new executable::
ftype Python.File=C:\Path\to\pythonw.exe "%1" %*
Additional modules Additional modules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment