@@ -717,12 +717,13 @@ def _create_launchers(self):
717
717
command = "$SYSDIR\cmd.exe" ,
718
718
args = r"/k cmd.bat" ,
719
719
)
720
- self .create_launcher (
721
- "WinPython Powershell Prompt.exe" ,
722
- "powershell.ico" ,
723
- command = "$SYSDIR\cmd.exe" ,
724
- args = r"/k cmd_ps.bat" ,
725
- )
720
+ # removed to reduce number of icons
721
+ #self.create_launcher(
722
+ # "WinPython Powershell Prompt.exe",
723
+ # "powershell.ico",
724
+ # command="$SYSDIR\cmd.exe",
725
+ # args=r"/k cmd_ps.bat",
726
+ #)
726
727
727
728
self .create_launcher (
728
729
"WinPython Terminal.exe" ,
@@ -738,13 +739,6 @@ def _create_launchers(self):
738
739
args = r"/k winpython.bat" ,
739
740
)
740
741
741
- #self.create_launcher(
742
- # "IDLEX.exe",
743
- # "python.ico",
744
- # command="wscript.exe",
745
- # args=r"Noshell.vbs winidlex.bat",
746
- #)
747
-
748
742
self .create_launcher (
749
743
"IDLE (Python GUI).exe" ,
750
744
"python.ico" ,
@@ -769,8 +763,10 @@ def _create_launchers(self):
769
763
self .create_launcher (
770
764
"WinPython Control Panel.exe" ,
771
765
"winpython.ico" ,
772
- command = "wscript.exe" ,
773
- args = r"Noshell.vbs wpcp.bat" ,
766
+ # command="wscript.exe",
767
+ # args=r"Noshell.vbs wpcp.bat",
768
+ command = "$SYSDIR\cmd.exe" ,
769
+ args = r"/k wpcp.bat" ,
774
770
)
775
771
776
772
# Multi-Qt launchers
@@ -819,13 +815,6 @@ def _create_launchers(self):
819
815
args = r"/k winjupyter_lab.bat" ,
820
816
)
821
817
822
- #self.create_launcher(
823
- # "Pyzo.exe",
824
- # "pyzologo.ico",
825
- # command="wscript.exe",
826
- # args=r"Noshell.vbs winpyzo.bat",
827
- #)
828
-
829
818
# VSCode launcher
830
819
self .create_launcher (
831
820
"VS Code.exe" ,
@@ -1512,44 +1501,6 @@ def _create_batch_scripts(self):
1512
1501
do_changes = changes ,
1513
1502
)
1514
1503
1515
- self .create_batch_script (
1516
- "idlex.bat" ,
1517
- r"""@echo off
1518
- call "%~dp0env_for_icons.bat" %*
1519
- rem backward compatibility for non-IDLEX users
1520
- if exist "%WINPYDIR%\scripts\idlex.pyw" (
1521
- "%WINPYDIR%\python.exe" "%WINPYDIR%\scripts\idlex.pyw" %*
1522
- ) else (
1523
- "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %*
1524
- )
1525
- """ ,
1526
- do_changes = changes ,
1527
- )
1528
-
1529
- self .create_batch_script (
1530
- "idle.bat" ,
1531
- r"""@echo off
1532
- call "%~dp0env_for_icons.bat" %*
1533
- "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %*
1534
-
1535
- """ ,
1536
- do_changes = changes ,
1537
- )
1538
- self .create_batch_script (
1539
- "winidlex.bat" ,
1540
- r"""@echo off
1541
-
1542
- call "%~dp0env_for_icons.bat" %*
1543
- cd/D "%WINPYWORKDIR1%"
1544
- rem backward compatibility for non-IDLEX users
1545
- if exist "%WINPYDIR%\scripts\idlex.pyw" (
1546
- "%WINPYDIR%\python.exe" "%WINPYDIR%\scripts\idlex.pyw" %*
1547
- ) else (
1548
- echo "%WINPYDIR%\scripts\idlex.pyw" for IDLEX not found !"
1549
- )
1550
- """ ,
1551
- do_changes = changes ,
1552
- )
1553
1504
self .create_batch_script (
1554
1505
"winidle.bat" ,
1555
1506
r"""@echo off
@@ -1560,18 +1511,6 @@ def _create_batch_scripts(self):
1560
1511
do_changes = changes ,
1561
1512
)
1562
1513
1563
- self .create_batch_script (
1564
- "spyder.bat" ,
1565
- r"""@echo off
1566
- call "%~dp0env_for_icons.bat" %*
1567
- rem cd/D "%WINPYWORKDIR%"
1568
- if exist "%WINPYDIR%\scripts\spyder3.exe" (
1569
- "%WINPYDIR%\scripts\spyder3.exe" %* -w "%WINPYWORKDIR1%"
1570
- ) else (
1571
- "%WINPYDIR%\scripts\spyder.exe" %* -w "%WINPYWORKDIR1%"
1572
- )
1573
- """ ,
1574
- )
1575
1514
self .create_batch_script (
1576
1515
"winspyder.bat" ,
1577
1516
r"""@echo off
@@ -1598,15 +1537,6 @@ def _create_batch_scripts(self):
1598
1537
""" ,
1599
1538
)
1600
1539
1601
- self .create_batch_script (
1602
- "ipython_notebook.bat" ,
1603
- r"""@echo off
1604
- call "%~dp0env_for_icons.bat" %*
1605
- cd/D "%WINPYWORKDIR1%"
1606
- "%WINPYDIR%\scripts\jupyter-notebook.exe" %*
1607
- """ ,
1608
- )
1609
-
1610
1540
self .create_batch_script (
1611
1541
"winipython_notebook.bat" ,
1612
1542
r"""@echo off
@@ -1634,15 +1564,6 @@ def _create_batch_scripts(self):
1634
1564
""" ,
1635
1565
)
1636
1566
1637
- self .create_batch_script (
1638
- "qtconsole.bat" ,
1639
- r"""@echo off
1640
- call "%~dp0env_for_icons.bat" %*
1641
- cd/D "%WINPYWORKDIR1%"
1642
- "%WINPYDIR%\scripts\jupyter-qtconsole.exe" %*
1643
- """ ,
1644
- )
1645
-
1646
1567
self .create_batch_script (
1647
1568
"winqtconsole.bat" ,
1648
1569
r"""@echo off
@@ -1786,15 +1707,14 @@ def _create_batch_scripts(self):
1786
1707
"wpcp.bat" ,
1787
1708
r"""@echo off
1788
1709
call "%~dp0env_for_icons.bat" %*
1789
- cd/D "%WINPYWORKDIR1%"
1790
- "%WINPYDIR%\python.exe" -m winpython.controlpanel %*
1710
+ rem cd/D "%WINPYWORKDIR1%"
1711
+ rem "%WINPYDIR%\python.exe" -m winpython.controlpanel %*
1712
+ if not "%WINPYWORKDIR%"=="%WINPYWORKDIR1%" cd/d %WINPYWORKDIR1%
1713
+ cmd.exe /k "echo wppm & echo & wppm"
1791
1714
""" ,
1792
1715
do_changes = changes ,
1793
1716
)
1794
1717
1795
- # self.create_python_batch('wpcp.bat', '-m winpython.controlpanel',
1796
- # workdir=r'"%WINPYDIR%\Scripts"')
1797
-
1798
1718
self .create_batch_script (
1799
1719
"upgrade_pip.bat" ,
1800
1720
r"""@echo off
0 commit comments