mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Rename pydoc.pyw to pydocgui.pyw: Since we changed Python to allow .pyw
files to satisfy imports, pydoc.pyw was just importing itself!
This commit is contained in:
parent
b39fa0e0fa
commit
45e5e72eb8
3 changed files with 6 additions and 3 deletions
|
|
@ -2451,7 +2451,7 @@ end
|
||||||
item: Create Shortcut
|
item: Create Shortcut
|
||||||
Source=%MAINDIR%\pythonw.exe
|
Source=%MAINDIR%\pythonw.exe
|
||||||
Destination=%GROUP%\Module Docs.lnk
|
Destination=%GROUP%\Module Docs.lnk
|
||||||
Command Options="%MAINDIR%\Tools\Scripts\pydoc.pyw"
|
Command Options="%MAINDIR%\Tools\Scripts\pydocgui.pyw"
|
||||||
Working Directory=%MAINDIR%
|
Working Directory=%MAINDIR%
|
||||||
Key Type=1536
|
Key Type=1536
|
||||||
Flags=00000001
|
Flags=00000001
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
import pydoc
|
|
||||||
pydoc.gui()
|
|
||||||
5
Tools/scripts/pydocgui.pyw
Normal file
5
Tools/scripts/pydocgui.pyw
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Note: this file must not be named pydoc.pyw, lest it just end up
|
||||||
|
# importing itself (Python began allowing import of .pyw files
|
||||||
|
# between 2.2a1 and 2.2a2).
|
||||||
|
import pydoc
|
||||||
|
pydoc.gui()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue