Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04a4316

Browse files
committed
Issue #25450: Updates shortcuts to start Python in installation directory.
1 parent 940f6a8 commit 04a4316

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ Build
348348
Windows
349349
-------
350350

351+
- Issue #25450: Updates shortcuts to start Python in installation directory.
352+
351353
- Issue #25164: Changes default all-users install directory to match per-user
352354
directory.
353355

Tools/msi/doc/doc.wxs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
<Shortcut Id="python.chm"
2323
Target="[#python.chm]"
2424
Name="!(loc.ShortcutName)"
25-
Description="!(loc.ShortcutDescription)" />
25+
Description="!(loc.ShortcutDescription)"
26+
WorkingDirectory="InstallDirectory" />
2627
<RemoveFolder Id="Remove_MenuDir" On="uninstall" />
2728
</Component>
2829
<?endif ?>

Tools/msi/exe/exe.wxs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
<Shortcut Id="python.exe"
2121
Target="[#python.exe]"
2222
Name="!(loc.ShortcutName)"
23-
Description="!(loc.ShortcutDescription)" />
23+
Description="!(loc.ShortcutDescription)"
24+
WorkingDirectory="InstallDirectory" />
2425
<RemoveFolder Id="Remove_MenuDir" Directory="MenuDir" On="uninstall" />
2526
<RegistryKey Root="HKMU" Key="[REGISTRYKEY]">
2627
<RegistryValue Key="InstallPath\InstallGroup" Type="string" Value="!(loc.ProductName)" KeyPath="yes" />

Tools/msi/tcltk/tcltk.wxs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@
4949
Description="!(loc.ShortcutDescription)"
5050
Target="[PYTHONW_EXE]"
5151
Arguments='"[#Lib_idlelib_idle.pyw]"'
52-
Icon="idle.exe">
52+
Icon="idle.exe"
53+
WorkingDirectory="InstallDirectory">
5354
<Icon Id="idle.exe" SourceFile="!(bindpath.src)Lib\idlelib\Icons\idle.ico" />
5455
</Shortcut>
5556
<Shortcut Id="pydoc.py"
5657
Target="[PYTHON_EXE]"
5758
Arguments='-m pydoc -b'
5859
Name="!(loc.PyDocShortcutName)"
5960
Description="!(loc.PyDocShortcutDescription)"
60-
Icon="idle.exe" />
61+
Icon="idle.exe"
62+
WorkingDirectory="InstallDirectory" />
6163
</Component>
6264
</Feature>
6365
</Product>

0 commit comments

Comments
 (0)