Skip to content

Commit ed039b8

Browse files
authored
gh-132930: Include IDLE path in registry for PyManager packages (GH-133246)
1 parent c73d460 commit ed039b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PC/layout/support/pymanager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
188188
],
189189
})
190190

191-
if TARGETW:
191+
if TARGETW and STD_PEP514:
192192
STD_PEP514[0]["InstallPath"]["WindowedExecutablePath"] = f"%PREFIX%{TARGETW}"
193193

194194
if ns.include_idle:
@@ -206,6 +206,8 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
206206
"Icon": r"%PREFIX%Lib\idlelib\Icons\idle.ico",
207207
"IconIndex": 0,
208208
})
209+
if STD_PEP514:
210+
STD_PEP514[0]["InstallPath"]["IdlePath"] = f"%PREFIX%Lib\\idlelib\\idle.pyw"
209211

210212
if ns.include_html_doc:
211213
STD_PEP514[0]["Help"]["Main Python Documentation"] = {

0 commit comments

Comments
 (0)