8000 move laucnher scripts to python -m module · blog2i2j/winpython.._..winpython@42584a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 42584a0

Browse files
committed
move laucnher scripts to python -m module
avoiding the module.exe script when we can
1 parent 07e29be commit 42584a0

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@echo off
22
call "%~dp0env_for_icons.bat" %*
3-
"%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %*
3+
rem "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %*
4+
"%WINPYDIR%\python.exe" -m idlelib %*
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@echo off
22
call "%~dp0env_for_icons.bat" %*
3-
"%WINPYDIR%\scripts\jupyter-notebook.exe" %*
3+
rem "%WINPYDIR%\scripts\jupyter-notebook.exe" %*
4+
"%WINPYDIR%\python.exe" -m jupyter notebook %*
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@echo off
22
call "%~dp0env_for_icons.bat" %*
3-
"%WINPYDIR%\scripts\jupyter-lab.exe" %*
3+
rem "%WINPYDIR%\scripts\jupyter-lab.exe" %*
4+
"%WINPYDIR%\python.exe" -m jupyter lab %*
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@echo off
22
call "%~dp0env_for_icons.bat" %*
33
rem backward compatibility for non-ptpython users
4-
if exist "%WINPYDIR%\scripts\ptpython.exe" (
5-
"%WINPYDIR%\scripts\ptpython.exe" %*
4+
if exist "%WINPYDIR%\Lib\site-packages\ptpython" (
5+
"%WINPYDIR%\python.exe" -m ptpython %*
66
) else (
77
"%WINPYDIR%\python.exe" %*
88
)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@echo off
22
call "%~dp0env_for_icons.bat" %*
3-
cmd.exe /k "echo wppm & wppm %*"
3+
rem cmd.exe /k "echo wppm & wppm" %*
4+
cmd.exe /k "echo wppm & python -m wppm" %*

0 commit comments

Comments
 (0)
0