@@ -82,6 +82,8 @@ In order to run Python flawlessly, you might have to change certain environment
8282settings in Windows.
8383
8484
85+ .. _setting-envvars :
86+
8587Excursus: Setting environment variables
8688---------------------------------------
8789
@@ -133,18 +135,28 @@ Consult :command:`set /?` for details on this behaviour.
133135Finding the Python executable
134136-----------------------------
135137
138+ .. versionchanged :: 3.3
139+
136140Besides using the automatically created start menu entry for the Python
137- interpreter, you might want to start Python in the DOS prompt. To make this
138- work, you need to set your :envvar: `%PATH% ` environment variable to include the
139- directory of your Python distribution, delimited by a semicolon from other
140- entries. An example variable could look like this (assuming the first two
141- entries are Windows' default)::
141+ interpreter, you might want to start Python in the command prompt. As of
142+ Python 3.3, the installer has an option to set that up for you.
143+
144+ At the "Customize Python 3.3" screen, an option called
145+ "Add python.exe to search path" can be enabled to have the installer place
146+ your installation into the :envvar: `%PATH% `. This allows you to type
147+ :command: `python ` to run the interpreter. Thus, you can also execute your
148+ scripts with command line options, see :ref: `using-on-cmdline ` documentation.
149+
150+ If you don't enable this option at install time, you can always re-run the
151+ installer to choose it.
142152
143- C:\WINDOWS\system32;C:\WINDOWS;C:\Python25
153+ The alternative is manually modifying the :envvar: `%PATH% ` using the
154+ directions in :ref: `setting-envvars `. You need to set your :envvar: `%PATH% `
155+ environment variable to include the directory of your Python distribution,
156+ delimited by a semicolon from other entries. An example variable could look
157+ like this (assuming the first two entries are Windows' default)::
144158
145- Typing :command: `python ` on your command prompt will now fire up the Python
146- interpreter. Thus, you can also execute your scripts with command line options,
147- see :ref: `using-on-cmdline ` documentation.
159+ C:\WINDOWS\system32;C:\WINDOWS;C:\Python33
148160
149161
150162Finding modules
0 commit comments