]> granicus.if.org Git - python/commitdiff
Add blurb about executable scripts on Windows. #760657.
authorGeorg Brandl <georg@python.org>
Sun, 20 Jan 2008 19:40:58 +0000 (19:40 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 20 Jan 2008 19:40:58 +0000 (19:40 +0000)
Doc/tutorial/interpreter.rst

index 1ba14d9485284417181deddc30aea1bc268e2e4b..5a3431dd37ceb1528748c1a4b93e2e47afbf0547 100644 (file)
@@ -166,6 +166,12 @@ The script can be given an executable mode, or permission, using the
 
    $ chmod +x myscript.py
 
+On Windows systems, there is no notion of an "executable mode".  The Python
+installer automatically associates ``.py`` files with ``python.exe`` so that
+a double-click on a Python file will run it as a script.  The extension can
+also be ``.pyw``, in that case, the console window that normally appears is
+suppressed.
+
 
 Source Code Encoding
 --------------------