mirror of
https://github.com/python/cpython.git
synced 2026-01-27 13:15:25 +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
@ -2451,7 +2451,7 @@ end
|
||||
item: Create Shortcut
|
||||
Source=%MAINDIR%\pythonw.exe
|
||||
Destination=%GROUP%\Module Docs.lnk
|
||||
Command Options="%MAINDIR%\Tools\Scripts\pydoc.pyw"
|
||||
Command Options="%MAINDIR%\Tools\Scripts\pydocgui.pyw"
|
||||
Working Directory=%MAINDIR%
|
||||
Key Type=1536
|
||||
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…
x
Reference in New Issue
Block a user